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

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

Issue 542533002: [Aura] Fix window resize handling on fullscreen event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cancel resize event on fullscreen event Created 6 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
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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 230
231 void SetWindowTransparency(); 231 void SetWindowTransparency();
232 232
233 // Relayout the widget's client and non-client views. 233 // Relayout the widget's client and non-client views.
234 void Relayout(); 234 void Relayout();
235 235
236 // ui::PlatformEventDispatcher: 236 // ui::PlatformEventDispatcher:
237 virtual bool CanDispatchEvent(const ui::PlatformEvent& event) OVERRIDE; 237 virtual bool CanDispatchEvent(const ui::PlatformEvent& event) OVERRIDE;
238 virtual uint32_t DispatchEvent(const ui::PlatformEvent& event) OVERRIDE; 238 virtual uint32_t DispatchEvent(const ui::PlatformEvent& event) OVERRIDE;
239 239
240 void DelayedResize(const gfx::Size& size); 240 void DelayedResize();
241 241
242 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; 242 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_;
243 243
244 // X11 things 244 // X11 things
245 // The display and the native X window hosting the root window. 245 // The display and the native X window hosting the root window.
246 XDisplay* xdisplay_; 246 XDisplay* xdisplay_;
247 ::Window xwindow_; 247 ::Window xwindow_;
248 248
249 // The native root window. 249 // The native root window.
250 ::Window x_root_window_; 250 ::Window x_root_window_;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 320
321 // The current DesktopWindowTreeHostX11 which has capture. Set synchronously 321 // The current DesktopWindowTreeHostX11 which has capture. Set synchronously
322 // when capture is requested via SetCapture(). 322 // when capture is requested via SetCapture().
323 static DesktopWindowTreeHostX11* g_current_capture; 323 static DesktopWindowTreeHostX11* g_current_capture;
324 324
325 // A list of all (top-level) windows that have been created but not yet 325 // A list of all (top-level) windows that have been created but not yet
326 // destroyed. 326 // destroyed.
327 static std::list<XID>* open_windows_; 327 static std::list<XID>* open_windows_;
328 328
329 base::string16 window_title_; 329 base::string16 window_title_;
330 gfx::Size window_size_;
330 331
331 // Whether we currently are flashing our frame. This feature is implemented 332 // Whether we currently are flashing our frame. This feature is implemented
332 // by setting the urgency hint with the window manager, which can draw 333 // by setting the urgency hint with the window manager, which can draw
333 // attention to the window or completely ignore the hint. We stop flashing 334 // attention to the window or completely ignore the hint. We stop flashing
334 // the frame when |xwindow_| gains focus or handles a mouse button event. 335 // the frame when |xwindow_| gains focus or handles a mouse button event.
335 bool urgency_hint_set_; 336 bool urgency_hint_set_;
336 337
337 base::CancelableCallback<void()> delayed_resize_task_; 338 base::CancelableCallback<void()> delayed_resize_task_;
338 339
339 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); 340 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11);
340 }; 341 };
341 342
342 } // namespace views 343 } // namespace views
343 344
344 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ 345 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698