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

Side by Side Diff: ui/wm/core/default_activation_client.h

Issue 209383003: Move wm/public into wm target (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « ui/wm/core/cursor_manager_unittest.cc ('k') | ui/wm/core/default_activation_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 UI_AURA_CLIENT_DEFAULT_ACTIVATION_CLIENT_H_ 5 #ifndef UI_WM_CORE_DEFAULT_ACTIVATION_CLIENT_H_
6 #define UI_AURA_CLIENT_DEFAULT_ACTIVATION_CLIENT_H_ 6 #define UI_WM_CORE_DEFAULT_ACTIVATION_CLIENT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/observer_list.h" 12 #include "base/observer_list.h"
13 #include "ui/aura/aura_export.h"
14 #include "ui/aura/window_observer.h" 13 #include "ui/aura/window_observer.h"
15 #include "ui/wm/public/activation_client.h" 14 #include "ui/wm/public/activation_client.h"
15 #include "ui/wm/wm_export.h"
16 16
17 namespace aura { 17 namespace aura {
18 namespace client { 18 namespace client {
19 class ActivationChangeObserver; 19 class ActivationChangeObserver;
20 } 20 }
21 21
22 namespace client { 22 namespace client {
23 23
24 // Simple ActivationClient implementation for use by tests and other targets 24 // Simple ActivationClient implementation for use by tests and other targets
25 // that just need basic behavior (e.g. activate windows whenever requested, 25 // that just need basic behavior (e.g. activate windows whenever requested,
26 // restack windows at the top when they're activated, etc.). 26 // restack windows at the top when they're activated, etc.).
27 class AURA_EXPORT DefaultActivationClient : public client::ActivationClient, 27 class WM_EXPORT DefaultActivationClient : public client::ActivationClient,
28 public WindowObserver { 28 public WindowObserver {
29 public: 29 public:
30 explicit DefaultActivationClient(Window* root_window); 30 explicit DefaultActivationClient(Window* root_window);
31 virtual ~DefaultActivationClient(); 31 virtual ~DefaultActivationClient();
32 32
33 // Overridden from client::ActivationClient: 33 // Overridden from client::ActivationClient:
34 virtual void AddObserver(client::ActivationChangeObserver* observer) OVERRIDE; 34 virtual void AddObserver(client::ActivationChangeObserver* observer) OVERRIDE;
35 virtual void RemoveObserver( 35 virtual void RemoveObserver(
36 client::ActivationChangeObserver* observer) OVERRIDE; 36 client::ActivationChangeObserver* observer) OVERRIDE;
37 virtual void ActivateWindow(Window* window) OVERRIDE; 37 virtual void ActivateWindow(Window* window) OVERRIDE;
38 virtual void DeactivateWindow(Window* window) OVERRIDE; 38 virtual void DeactivateWindow(Window* window) OVERRIDE;
(...skipping 20 matching lines...) Expand all
59 Window* last_active_; 59 Window* last_active_;
60 60
61 ObserverList<client::ActivationChangeObserver> observers_; 61 ObserverList<client::ActivationChangeObserver> observers_;
62 62
63 DISALLOW_COPY_AND_ASSIGN(DefaultActivationClient); 63 DISALLOW_COPY_AND_ASSIGN(DefaultActivationClient);
64 }; 64 };
65 65
66 } // namespace client 66 } // namespace client
67 } // namespace aura 67 } // namespace aura
68 68
69 #endif // UI_AURA_CLIENT_DEFAULT_ACTIVATION_CLIENT_H_ 69 #endif // UI_WM_CORE_DEFAULT_ACTIVATION_CLIENT_H_
OLDNEW
« no previous file with comments | « ui/wm/core/cursor_manager_unittest.cc ('k') | ui/wm/core/default_activation_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698