summaryrefslogtreecommitdiff
path: root/chromium/ui/views/window/dialog_observer.h
blob: 95aca714c4af4fc0fa01a685238ef2a9b6c99c4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef UI_VIEWS_WINDOW_DIALOG_DIALOG_OBSERVER_H_
#define UI_VIEWS_WINDOW_DIALOG_DIALOG_OBSERVER_H_

#include "ui/views/views_export.h"

namespace views {

// Allows properties on a ui::DialogModel to be observed.
class VIEWS_EXPORT DialogObserver {
 public:
  // Invoked when a dialog signals a model change. E.g., the enabled buttons, or
  // the button titles.
  virtual void OnDialogModelChanged() = 0;
};

}  // namespace views

#endif  // UI_VIEWS_WINDOW_DIALOG_DIALOG_OBSERVER_H_