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

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

Issue 8113028: Consolidate ui::NativeEvent and base::NativeEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync/resolve Created 9 years, 2 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 | « base/message_pump_observer.h ('k') | ui/aura/desktop.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_H_ 5 #ifndef UI_AURA_DESKTOP_H_
6 #define UI_AURA_DESKTOP_H_ 6 #define UI_AURA_DESKTOP_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 Window* active_window() { return active_window_; } 86 Window* active_window() { return active_window_; }
87 87
88 // Activates the topmost window. Does nothing if the topmost window is already 88 // Activates the topmost window. Does nothing if the topmost window is already
89 // active. 89 // active.
90 void ActivateTopmostWindow(); 90 void ActivateTopmostWindow();
91 91
92 // Invoked from RootWindow when |window| is being destroyed. 92 // Invoked from RootWindow when |window| is being destroyed.
93 void WindowDestroying(Window* window); 93 void WindowDestroying(Window* window);
94 94
95 // Dispatch NativeEvent. 95 // Dispatch NativeEvent.
96 bool DispatchNativeEvent(const ui::NativeEvent& event); 96 bool DispatchNativeEvent(const base::NativeEvent& event);
97 97
98 static Desktop* GetInstance(); 98 static Desktop* GetInstance();
99 99
100 private: 100 private:
101 // Returns the topmost window to activate. This ignores |ignore|. 101 // Returns the topmost window to activate. This ignores |ignore|.
102 Window* GetTopmostWindowToActivate(Window* ignore); 102 Window* GetTopmostWindowToActivate(Window* ignore);
103 103
104 // Overridden from ui::CompositorDelegate 104 // Overridden from ui::CompositorDelegate
105 virtual void ScheduleDraw(); 105 virtual void ScheduleDraw();
106 106
(...skipping 18 matching lines...) Expand all
125 // Are we in the process of being destroyed? Used to avoid processing during 125 // Are we in the process of being destroyed? Used to avoid processing during
126 // destruction. 126 // destruction.
127 bool in_destructor_; 127 bool in_destructor_;
128 128
129 DISALLOW_COPY_AND_ASSIGN(Desktop); 129 DISALLOW_COPY_AND_ASSIGN(Desktop);
130 }; 130 };
131 131
132 } // namespace aura 132 } // namespace aura
133 133
134 #endif // UI_AURA_DESKTOP_H_ 134 #endif // UI_AURA_DESKTOP_H_
OLDNEW
« no previous file with comments | « base/message_pump_observer.h ('k') | ui/aura/desktop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698