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

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

Issue 10895020: Merge aura::DispatcherLinux into base::MessagePumpAuraX11. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes for sadrul Created 8 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 | Annotate | Revision Log
« no previous file with comments | « ui/aura/display_change_observer_x11.cc ('k') | ui/aura/env.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_ENV_H_ 5 #ifndef UI_AURA_ENV_H_
6 #define UI_AURA_ENV_H_ 6 #define UI_AURA_ENV_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
11 #include "ui/aura/aura_export.h" 11 #include "ui/aura/aura_export.h"
12 #include "ui/aura/client/stacking_client.h" 12 #include "ui/aura/client/stacking_client.h"
13 #include "ui/gfx/point.h" 13 #include "ui/gfx/point.h"
14 14
15 #if defined(USE_X11)
16 #include "ui/aura/device_list_updater_aurax11.h"
17 #endif
18
15 namespace aura { 19 namespace aura {
16 class EnvObserver; 20 class EnvObserver;
17 class EventFilter; 21 class EventFilter;
18 class DisplayManager; 22 class DisplayManager;
19 class Window; 23 class Window;
20 24
21 namespace internal { 25 namespace internal {
22 class DisplayChangeObserverX11; 26 class DisplayChangeObserverX11;
23 } 27 }
24 28
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 93
90 private: 94 private:
91 friend class Window; 95 friend class Window;
92 96
93 void Init(); 97 void Init();
94 98
95 // Called by the Window when it is initialized. Notifies observers. 99 // Called by the Window when it is initialized. Notifies observers.
96 void NotifyWindowInitialized(Window* window); 100 void NotifyWindowInitialized(Window* window);
97 101
98 ObserverList<EnvObserver> observers_; 102 ObserverList<EnvObserver> observers_;
99 #if !defined(OS_MACOSX) 103 #if defined(OS_WIN)
100 scoped_ptr<MessageLoop::Dispatcher> dispatcher_; 104 scoped_ptr<MessageLoop::Dispatcher> dispatcher_;
101 #endif 105 #endif
102 106
103 static Env* instance_; 107 static Env* instance_;
104 int mouse_button_flags_; 108 int mouse_button_flags_;
105 // Location of last mouse event, in screen coordinates. 109 // Location of last mouse event, in screen coordinates.
106 gfx::Point last_mouse_location_; 110 gfx::Point last_mouse_location_;
107 // If the cursor is hidden, saves the previous last_mouse_position. 111 // If the cursor is hidden, saves the previous last_mouse_position.
108 gfx::Point hidden_cursor_location_; 112 gfx::Point hidden_cursor_location_;
109 bool is_cursor_hidden_; 113 bool is_cursor_hidden_;
110 bool is_touch_down_; 114 bool is_touch_down_;
111 bool render_white_bg_; 115 bool render_white_bg_;
112 client::StackingClient* stacking_client_; 116 client::StackingClient* stacking_client_;
113 scoped_ptr<DisplayManager> display_manager_; 117 scoped_ptr<DisplayManager> display_manager_;
114 scoped_ptr<EventFilter> event_filter_; 118 scoped_ptr<EventFilter> event_filter_;
115 119
116 #if defined(USE_X11) 120 #if defined(USE_X11)
117 scoped_ptr<internal::DisplayChangeObserverX11> display_change_observer_; 121 scoped_ptr<internal::DisplayChangeObserverX11> display_change_observer_;
122 DeviceListUpdaterAuraX11 device_list_updater_aurax11_;
118 #endif 123 #endif
119 124
120 DISALLOW_COPY_AND_ASSIGN(Env); 125 DISALLOW_COPY_AND_ASSIGN(Env);
121 }; 126 };
122 127
123 } // namespace aura 128 } // namespace aura
124 129
125 #endif // UI_AURA_ENV_H_ 130 #endif // UI_AURA_ENV_H_
OLDNEW
« no previous file with comments | « ui/aura/display_change_observer_x11.cc ('k') | ui/aura/env.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698