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

Side by Side Diff: chrome/browser/ui/aura/active_desktop_monitor.h

Issue 1336993002: Straighten up includes of host_desktop.h/host_desktop_type.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@host_desktop_type
Patch Set: Build fixes for Windows and Mac Created 5 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 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 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_AURA_ACTIVE_DESKTOP_MONITOR_H_ 5 #ifndef CHROME_BROWSER_UI_AURA_ACTIVE_DESKTOP_MONITOR_H_
6 #define CHROME_BROWSER_UI_AURA_ACTIVE_DESKTOP_MONITOR_H_ 6 #define CHROME_BROWSER_UI_AURA_ACTIVE_DESKTOP_MONITOR_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/browser/ui/host_desktop.h"
11 #include "ui/aura/env_observer.h" 10 #include "ui/aura/env_observer.h"
11 #include "ui/gfx/host_desktop_type.h"
12 12
13 // Tracks the most-recently activated host desktop type by observing 13 // Tracks the most-recently activated host desktop type by observing
14 // WindowTreeHost activations. 14 // WindowTreeHost activations.
15 class ActiveDesktopMonitor : public aura::EnvObserver { 15 class ActiveDesktopMonitor : public aura::EnvObserver {
16 public: 16 public:
17 // Constructs an ActiveDesktopMonitor which initially uses |initial_desktop| 17 // Constructs an ActiveDesktopMonitor which initially uses |initial_desktop|
18 // as the |last_activated_desktop_| until a root window is activated. 18 // as the |last_activated_desktop_| until a root window is activated.
19 explicit ActiveDesktopMonitor(ui::HostDesktopType initial_desktop); 19 explicit ActiveDesktopMonitor(ui::HostDesktopType initial_desktop);
20 ~ActiveDesktopMonitor() override; 20 ~ActiveDesktopMonitor() override;
21 21
(...skipping 11 matching lines...) Expand all
33 void OnWindowInitialized(aura::Window* window) override; 33 void OnWindowInitialized(aura::Window* window) override;
34 void OnHostActivated(aura::WindowTreeHost* host) override; 34 void OnHostActivated(aura::WindowTreeHost* host) override;
35 35
36 static ActiveDesktopMonitor* g_instance_; 36 static ActiveDesktopMonitor* g_instance_;
37 ui::HostDesktopType last_activated_desktop_; 37 ui::HostDesktopType last_activated_desktop_;
38 38
39 DISALLOW_COPY_AND_ASSIGN(ActiveDesktopMonitor); 39 DISALLOW_COPY_AND_ASSIGN(ActiveDesktopMonitor);
40 }; 40 };
41 41
42 #endif // CHROME_BROWSER_UI_AURA_ACTIVE_DESKTOP_MONITOR_H_ 42 #endif // CHROME_BROWSER_UI_AURA_ACTIVE_DESKTOP_MONITOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/window_positioner_unittest.cc ('k') | chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698