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

Side by Side Diff: ui/aura/desktop/desktop_stacking_client.h

Issue 11362216: reland of https://codereview.chromium.org/11364053/ w/o removing the per-rootwindow stacking client (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: fix dnwa Created 8 years, 1 month 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/aura/demo/demo_main.cc ('k') | ui/aura/desktop/desktop_stacking_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 (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 UI_AURA_DESKTOP_DESKTOP_STACKING_CLIENT_H_ 5 #ifndef UI_AURA_DESKTOP_DESKTOP_STACKING_CLIENT_H_
6 #define UI_AURA_DESKTOP_DESKTOP_STACKING_CLIENT_H_ 6 #define UI_AURA_DESKTOP_DESKTOP_STACKING_CLIENT_H_
7 7
8 #include "ui/aura/client/stacking_client.h" 8 #include "ui/aura/client/stacking_client.h"
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 19 matching lines...) Expand all
30 } 30 }
31 31
32 // A stacking client for the desktop; always sets the default parent to the 32 // A stacking client for the desktop; always sets the default parent to the
33 // RootWindow of the passed in Window. 33 // RootWindow of the passed in Window.
34 class VIEWS_EXPORT DesktopStackingClient : public client::StackingClient { 34 class VIEWS_EXPORT DesktopStackingClient : public client::StackingClient {
35 public: 35 public:
36 DesktopStackingClient(); 36 DesktopStackingClient();
37 virtual ~DesktopStackingClient(); 37 virtual ~DesktopStackingClient();
38 38
39 // Overridden from client::StackingClient: 39 // Overridden from client::StackingClient:
40 virtual Window* GetDefaultParent(Window* window, 40 virtual Window* GetDefaultParent(Window* context,
41 Window* window,
41 const gfx::Rect& bounds) OVERRIDE; 42 const gfx::Rect& bounds) OVERRIDE;
42 43
43 private: 44 private:
44 void CreateNULLParent(); 45 void CreateNULLParent();
45 46
46 // Windows with NULL parents are parented to this. 47 // Windows with NULL parents are parented to this.
47 scoped_ptr<RootWindow> null_parent_; 48 scoped_ptr<RootWindow> null_parent_;
48 49
49 // All the member variables below are necessary for the NULL parent root 50 // All the member variables below are necessary for the NULL parent root
50 // window to function. 51 // window to function.
51 scoped_ptr<FocusManager> focus_manager_; 52 scoped_ptr<FocusManager> focus_manager_;
52 // Depends on focus_manager_. 53 // Depends on focus_manager_.
53 scoped_ptr<DesktopActivationClient> activation_client_; 54 scoped_ptr<DesktopActivationClient> activation_client_;
54 55
55 scoped_ptr<views::corewm::InputMethodEventFilter> input_method_filter_; 56 scoped_ptr<views::corewm::InputMethodEventFilter> input_method_filter_;
56 views::corewm::CompoundEventFilter* window_event_filter_; 57 views::corewm::CompoundEventFilter* window_event_filter_;
57 58
58 scoped_ptr<client::DefaultCaptureClient> capture_client_; 59 scoped_ptr<client::DefaultCaptureClient> capture_client_;
59 60
60 DISALLOW_COPY_AND_ASSIGN(DesktopStackingClient); 61 DISALLOW_COPY_AND_ASSIGN(DesktopStackingClient);
61 }; 62 };
62 63
63 } // namespace aura 64 } // namespace aura
64 65
65 #endif // UI_AURA_DESKTOP_DESKTOP_STACKING_CLIENT_H_ 66 #endif // UI_AURA_DESKTOP_DESKTOP_STACKING_CLIENT_H_
OLDNEW
« no previous file with comments | « ui/aura/demo/demo_main.cc ('k') | ui/aura/desktop/desktop_stacking_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698