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

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

Issue 2507963002: Implement hit tests/client area. (Closed)
Patch Set: add it back Created 4 years 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <X11/extensions/shape.h> 10 #include <X11/extensions/shape.h>
(...skipping 21 matching lines...) Expand all
32 } 32 }
33 33
34 namespace ui { 34 namespace ui {
35 class EventHandler; 35 class EventHandler;
36 class XScopedEventSelector; 36 class XScopedEventSelector;
37 } 37 }
38 38
39 namespace views { 39 namespace views {
40 class DesktopDragDropClientAuraX11; 40 class DesktopDragDropClientAuraX11;
41 class DesktopWindowTreeHostObserverX11; 41 class DesktopWindowTreeHostObserverX11;
42 class NonClientFrameView;
42 class X11DesktopWindowMoveClient; 43 class X11DesktopWindowMoveClient;
43 44
44 class VIEWS_EXPORT DesktopWindowTreeHostX11 45 class VIEWS_EXPORT DesktopWindowTreeHostX11
45 : public DesktopWindowTreeHost, 46 : public DesktopWindowTreeHost,
46 public aura::WindowTreeHost, 47 public aura::WindowTreeHost,
47 public ui::PlatformEventDispatcher { 48 public ui::PlatformEventDispatcher {
48 public: 49 public:
49 DesktopWindowTreeHostX11( 50 DesktopWindowTreeHostX11(
50 internal::NativeWidgetDelegate* native_widget_delegate, 51 internal::NativeWidgetDelegate* native_widget_delegate,
51 DesktopNativeWidgetAura* desktop_native_widget_aura); 52 DesktopNativeWidgetAura* desktop_native_widget_aura);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 void SetVisibleOnAllWorkspaces(bool always_visible) override; 131 void SetVisibleOnAllWorkspaces(bool always_visible) override;
131 bool IsVisibleOnAllWorkspaces() const override; 132 bool IsVisibleOnAllWorkspaces() const override;
132 bool SetWindowTitle(const base::string16& title) override; 133 bool SetWindowTitle(const base::string16& title) override;
133 void ClearNativeFocus() override; 134 void ClearNativeFocus() override;
134 Widget::MoveLoopResult RunMoveLoop( 135 Widget::MoveLoopResult RunMoveLoop(
135 const gfx::Vector2d& drag_offset, 136 const gfx::Vector2d& drag_offset,
136 Widget::MoveLoopSource source, 137 Widget::MoveLoopSource source,
137 Widget::MoveLoopEscapeBehavior escape_behavior) override; 138 Widget::MoveLoopEscapeBehavior escape_behavior) override;
138 void EndMoveLoop() override; 139 void EndMoveLoop() override;
139 void SetVisibilityChangedAnimationsEnabled(bool value) override; 140 void SetVisibilityChangedAnimationsEnabled(bool value) override;
141 NonClientFrameView* CreateNonClientFrameView() override;
140 bool ShouldUseNativeFrame() const override; 142 bool ShouldUseNativeFrame() const override;
141 bool ShouldWindowContentsBeTransparent() const override; 143 bool ShouldWindowContentsBeTransparent() const override;
142 void FrameTypeChanged() override; 144 void FrameTypeChanged() override;
143 void SetFullscreen(bool fullscreen) override; 145 void SetFullscreen(bool fullscreen) override;
144 bool IsFullscreen() const override; 146 bool IsFullscreen() const override;
145 void SetOpacity(float opacity) override; 147 void SetOpacity(float opacity) override;
146 void SetWindowIcons(const gfx::ImageSkia& window_icon, 148 void SetWindowIcons(const gfx::ImageSkia& window_icon,
147 const gfx::ImageSkia& app_icon) override; 149 const gfx::ImageSkia& app_icon) override;
148 void InitModalType(ui::ModalType modal_type) override; 150 void InitModalType(ui::ModalType modal_type) override;
149 void FlashFrame(bool flash_frame) override; 151 void FlashFrame(bool flash_frame) override;
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 427
426 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_; 428 base::WeakPtrFactory<DesktopWindowTreeHostX11> close_widget_factory_;
427 base::WeakPtrFactory<DesktopWindowTreeHostX11> weak_factory_; 429 base::WeakPtrFactory<DesktopWindowTreeHostX11> weak_factory_;
428 430
429 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11); 431 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostX11);
430 }; 432 };
431 433
432 } // namespace views 434 } // namespace views
433 435
434 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_ 436 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_X11_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698