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

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

Issue 1456963002: Make browser windows override_redirect when dragging tabs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make browser windows override_redirect when dragging tabs. Created 4 years, 11 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 #include <X11/Xutil.h> 10 #include <X11/Xutil.h>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 void AddObserver(views::DesktopWindowTreeHostObserverX11* observer); 78 void AddObserver(views::DesktopWindowTreeHostObserverX11* observer);
79 void RemoveObserver(views::DesktopWindowTreeHostObserverX11* observer); 79 void RemoveObserver(views::DesktopWindowTreeHostObserverX11* observer);
80 80
81 // Swaps the current handler for events in the non client view with |handler|. 81 // Swaps the current handler for events in the non client view with |handler|.
82 void SwapNonClientEventHandler(scoped_ptr<ui::EventHandler> handler); 82 void SwapNonClientEventHandler(scoped_ptr<ui::EventHandler> handler);
83 83
84 // Runs the |func| callback for each content-window, and deallocates the 84 // Runs the |func| callback for each content-window, and deallocates the
85 // internal list of open windows. 85 // internal list of open windows.
86 static void CleanUpWindowList(void (*func)(aura::Window* window)); 86 static void CleanUpWindowList(void (*func)(aura::Window* window));
87 87
88
88 protected: 89 protected:
89 // Overridden from DesktopWindowTreeHost: 90 // Overridden from DesktopWindowTreeHost:
90 void Init(aura::Window* content_window, 91 void Init(aura::Window* content_window,
91 const Widget::InitParams& params) override; 92 const Widget::InitParams& params) override;
92 void OnNativeWidgetCreated(const Widget::InitParams& params) override; 93 void OnNativeWidgetCreated(const Widget::InitParams& params) override;
93 scoped_ptr<corewm::Tooltip> CreateTooltip() override; 94 scoped_ptr<corewm::Tooltip> CreateTooltip() override;
94 scoped_ptr<aura::client::DragDropClient> CreateDragDropClient( 95 scoped_ptr<aura::client::DragDropClient> CreateDragDropClient(
95 DesktopNativeCursorManager* cursor_manager) override; 96 DesktopNativeCursorManager* cursor_manager) override;
96 void Close() override; 97 void Close() override;
97 void CloseNow() override; 98 void CloseNow() override;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 void ShowImpl() override; 155 void ShowImpl() override;
155 void HideImpl() override; 156 void HideImpl() override;
156 gfx::Rect GetBounds() const override; 157 gfx::Rect GetBounds() const override;
157 void SetBounds(const gfx::Rect& requested_bounds_in_pixels) override; 158 void SetBounds(const gfx::Rect& requested_bounds_in_pixels) override;
158 gfx::Point GetLocationOnNativeScreen() const override; 159 gfx::Point GetLocationOnNativeScreen() const override;
159 void SetCapture() override; 160 void SetCapture() override;
160 void ReleaseCapture() override; 161 void ReleaseCapture() override;
161 void SetCursorNative(gfx::NativeCursor cursor) override; 162 void SetCursorNative(gfx::NativeCursor cursor) override;
162 void MoveCursorToNative(const gfx::Point& location) override; 163 void MoveCursorToNative(const gfx::Point& location) override;
163 void OnCursorVisibilityChangedNative(bool show) override; 164 void OnCursorVisibilityChangedNative(bool show) override;
165 void RemapAsNormalWindow() override;
164 166
165 private: 167 private:
166 friend class DesktopWindowTreeHostX11HighDPITest; 168 friend class DesktopWindowTreeHostX11HighDPITest;
167 // Initializes our X11 surface to draw on. This method performs all 169 // Initializes our X11 surface to draw on. This method performs all
168 // initialization related to talking to the X11 server. 170 // initialization related to talking to the X11 server.
169 void InitX11Window(const Widget::InitParams& params); 171 void InitX11Window(const Widget::InitParams& params);
170 172
171 // Creates an aura::WindowEventDispatcher to contain the |content_window|, 173 // Creates an aura::WindowEventDispatcher to contain the |content_window|,
172 // along with all aura client objects that direct behavior. 174 // along with all aura client objects that direct behavior.
173 aura::WindowEventDispatcher* InitDispatcher(const Widget::InitParams& params); 175 aura::WindowEventDispatcher* InitDispatcher(const Widget::InitParams& params);
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 base::CancelableCallback<void()> delayed_resize_task_; 352 base::CancelableCallback<void()> delayed_resize_task_;
351 353
352 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; 354 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_;
353 355
354 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); 356 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11);
355 }; 357 };
356 358
357 } // namespace views 359 } // namespace views
358 360
359 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ 361 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_
OLDNEW
« no previous file with comments | « ui/aura/window_tree_host_x11.cc ('k') | ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698