1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29

ash / system / network / network_feature_pod_button.cc [blame]

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ash/system/network/network_feature_pod_button.h"

#include "base/check.h"
#include "ui/base/metadata/metadata_impl_macros.h"

namespace ash {

NetworkFeaturePodButton::NetworkFeaturePodButton(
    FeaturePodControllerBase* controller,
    Delegate* delegate)
    : FeaturePodButton(controller), delegate_(delegate) {
  DCHECK(delegate);
}

NetworkFeaturePodButton::~NetworkFeaturePodButton() = default;

void NetworkFeaturePodButton::OnThemeChanged() {
  FeaturePodButton::OnThemeChanged();
  delegate_->OnFeaturePodButtonThemeChanged();
}

BEGIN_METADATA(NetworkFeaturePodButton)
END_METADATA

}  // namespace ash