• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_LIST_OBSERVER_H_
6 #define CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_LIST_OBSERVER_H_
7 
8 namespace extensions {
9 
10 class WindowController;
11 
12 // Implementations must not change the contents of the WindowControllerList
13 // inside any of these methods.
14 class WindowControllerListObserver {
15   public:
16   // Called immediately after a window controller is added to the list
OnWindowControllerAdded(WindowController * window_controller)17   virtual void OnWindowControllerAdded(WindowController* window_controller) {}
18 
19   // Called immediately after a window controller is removed from the list
OnWindowControllerRemoved(WindowController * window_controller)20   virtual void OnWindowControllerRemoved(WindowController* window_controller) {}
21 
22  protected:
~WindowControllerListObserver()23   virtual ~WindowControllerListObserver() {}
24 };
25 
26 }  // namespace extensions
27 
28 #endif  // CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_LIST_OBSERVER_H_
29