Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: chrome/browser/ui/ash/launcher/browser_status_monitor.h

Issue 1920263003: Rename gfx::Display/Screen to display::Display/Screen in chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_STATUS_MONITOR_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_STATUS_MONITOR_H_
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_STATUS_MONITOR_H_ 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_STATUS_MONITOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 #include <string> 11 #include <string>
12 12
13 #include "ash/shelf/scoped_observer_with_duplicated_sources.h" 13 #include "ash/shelf/scoped_observer_with_duplicated_sources.h"
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/scoped_observer.h" 16 #include "base/scoped_observer.h"
17 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" 17 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h"
18 #include "chrome/browser/ui/browser_list_observer.h" 18 #include "chrome/browser/ui/browser_list_observer.h"
19 #include "chrome/browser/ui/browser_tab_strip_tracker.h" 19 #include "chrome/browser/ui/browser_tab_strip_tracker.h"
20 #include "chrome/browser/ui/browser_tab_strip_tracker_delegate.h" 20 #include "chrome/browser/ui/browser_tab_strip_tracker_delegate.h"
21 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" 21 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h"
22 #include "ui/aura/window_observer.h" 22 #include "ui/aura/window_observer.h"
23 #include "ui/gfx/display_observer.h" 23 #include "ui/display/display_observer.h"
24 #include "ui/wm/public/activation_change_observer.h" 24 #include "ui/wm/public/activation_change_observer.h"
25 25
26 namespace aura { 26 namespace aura {
27 class Window; 27 class Window;
28 28
29 namespace client { 29 namespace client {
30 class ActivationClient; 30 class ActivationClient;
31 } 31 }
32 } // namespace aura 32 } // namespace aura
33 33
34 class Browser; 34 class Browser;
35 35
36 // BrowserStatusMonitor monitors creation/deletion of Browser and its 36 // BrowserStatusMonitor monitors creation/deletion of Browser and its
37 // TabStripModel to keep the launcher representation up to date as the 37 // TabStripModel to keep the launcher representation up to date as the
38 // active tab changes. 38 // active tab changes.
39 class BrowserStatusMonitor : public aura::client::ActivationChangeObserver, 39 class BrowserStatusMonitor : public aura::client::ActivationChangeObserver,
40 public aura::WindowObserver, 40 public aura::WindowObserver,
41 public BrowserTabStripTrackerDelegate, 41 public BrowserTabStripTrackerDelegate,
42 public chrome::BrowserListObserver, 42 public chrome::BrowserListObserver,
43 public gfx::DisplayObserver, 43 public display::DisplayObserver,
44 public TabStripModelObserver { 44 public TabStripModelObserver {
45 public: 45 public:
46 explicit BrowserStatusMonitor(ChromeLauncherController* launcher_controller); 46 explicit BrowserStatusMonitor(ChromeLauncherController* launcher_controller);
47 ~BrowserStatusMonitor() override; 47 ~BrowserStatusMonitor() override;
48 48
49 // A function which gets called when the current user has changed. 49 // A function which gets called when the current user has changed.
50 // Note that this function is called by the ChromeLauncherController to be 50 // Note that this function is called by the ChromeLauncherController to be
51 // able to do the activation in a proper order - rather then setting an 51 // able to do the activation in a proper order - rather then setting an
52 // observer. 52 // observer.
53 virtual void ActiveUserChanged(const std::string& user_email) {} 53 virtual void ActiveUserChanged(const std::string& user_email) {}
(...skipping 15 matching lines...) Expand all
69 // aura::WindowObserver overrides: 69 // aura::WindowObserver overrides:
70 void OnWindowDestroyed(aura::Window* window) override; 70 void OnWindowDestroyed(aura::Window* window) override;
71 71
72 // BrowserTabStripTrackerDelegate overrides: 72 // BrowserTabStripTrackerDelegate overrides:
73 bool ShouldTrackBrowser(Browser* browser) override; 73 bool ShouldTrackBrowser(Browser* browser) override;
74 74
75 // chrome::BrowserListObserver overrides: 75 // chrome::BrowserListObserver overrides:
76 void OnBrowserAdded(Browser* browser) override; 76 void OnBrowserAdded(Browser* browser) override;
77 void OnBrowserRemoved(Browser* browser) override; 77 void OnBrowserRemoved(Browser* browser) override;
78 78
79 // gfx::DisplayObserver overrides: 79 // display::DisplayObserver overrides:
80 void OnDisplayAdded(const gfx::Display& new_display) override; 80 void OnDisplayAdded(const display::Display& new_display) override;
81 void OnDisplayRemoved(const gfx::Display& old_display) override; 81 void OnDisplayRemoved(const display::Display& old_display) override;
82 void OnDisplayMetricsChanged(const gfx::Display& display, 82 void OnDisplayMetricsChanged(const display::Display& display,
83 uint32_t metrics) override; 83 uint32_t metrics) override;
84 84
85 // TabStripModelObserver overrides: 85 // TabStripModelObserver overrides:
86 void ActiveTabChanged(content::WebContents* old_contents, 86 void ActiveTabChanged(content::WebContents* old_contents,
87 content::WebContents* new_contents, 87 content::WebContents* new_contents,
88 int index, 88 int index,
89 int reason) override; 89 int reason) override;
90 void TabReplacedAt(TabStripModel* tab_strip_model, 90 void TabReplacedAt(TabStripModel* tab_strip_model,
91 content::WebContents* old_contents, 91 content::WebContents* old_contents,
92 content::WebContents* new_contents, 92 content::WebContents* new_contents,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 BrowserToAppIDMap browser_to_app_id_map_; 148 BrowserToAppIDMap browser_to_app_id_map_;
149 WebContentsToObserverMap webcontents_to_observer_map_; 149 WebContentsToObserverMap webcontents_to_observer_map_;
150 std::unique_ptr<SettingsWindowObserver> settings_window_observer_; 150 std::unique_ptr<SettingsWindowObserver> settings_window_observer_;
151 151
152 BrowserTabStripTracker browser_tab_strip_tracker_; 152 BrowserTabStripTracker browser_tab_strip_tracker_;
153 153
154 DISALLOW_COPY_AND_ASSIGN(BrowserStatusMonitor); 154 DISALLOW_COPY_AND_ASSIGN(BrowserStatusMonitor);
155 }; 155 };
156 156
157 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_STATUS_MONITOR_H_ 157 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_STATUS_MONITOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/chrome_launcher_prefs.cc ('k') | chrome/browser/ui/ash/launcher/browser_status_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698