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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h

Issue 291093012: Fix some views unittests on desktop Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: UI_BASE_EXPORT Created 6 years, 6 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
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_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_
7 7
8 #include <X11/extensions/shape.h> 8 #include <X11/extensions/shape.h>
9 #include <X11/Xlib.h> 9 #include <X11/Xlib.h>
10 10
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 virtual void ReleaseCapture() OVERRIDE; 150 virtual void ReleaseCapture() OVERRIDE;
151 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; 151 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE;
152 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; 152 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE;
153 virtual void SetCursorNative(gfx::NativeCursor cursor) OVERRIDE; 153 virtual void SetCursorNative(gfx::NativeCursor cursor) OVERRIDE;
154 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE; 154 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE;
155 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; 155 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE;
156 156
157 // Overridden frm ui::EventSource 157 // Overridden frm ui::EventSource
158 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE; 158 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE;
159 159
160 private: 160 private:
161 // Initializes our X11 surface to draw on. This method performs all 161 // Initializes our X11 surface to draw on. This method performs all
162 // initialization related to talking to the X11 server. 162 // initialization related to talking to the X11 server.
163 void InitX11Window(const Widget::InitParams& params); 163 void InitX11Window(const Widget::InitParams& params);
164 164
165 // Creates an aura::WindowEventDispatcher to contain the |content_window|, 165 // Creates an aura::WindowEventDispatcher to contain the |content_window|,
166 // along with all aura client objects that direct behavior. 166 // along with all aura client objects that direct behavior.
167 aura::WindowEventDispatcher* InitDispatcher(const Widget::InitParams& params); 167 aura::WindowEventDispatcher* InitDispatcher(const Widget::InitParams& params);
168 168
169 // Called when |xwindow_|'s _NET_WM_STATE property is updated. 169 // Called when |xwindow_|'s _NET_WM_STATE property is updated.
170 void OnWMStateUpdated(); 170 void OnWMStateUpdated();
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 // attention to the window or completely ignore the hint. We stop flashing 318 // attention to the window or completely ignore the hint. We stop flashing
319 // the frame when |xwindow_| gains focus or handles a mouse button event. 319 // the frame when |xwindow_| gains focus or handles a mouse button event.
320 bool urgency_hint_set_; 320 bool urgency_hint_set_;
321 321
322 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); 322 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11);
323 }; 323 };
324 324
325 } // namespace views 325 } // namespace views
326 326
327 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ 327 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698