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

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

Issue 2507963002: Implement hit tests/client area. (Closed)
Patch Set: add it back Created 4 years, 1 month 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_WIN_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/aura/window_tree_host.h" 9 #include "ui/aura/window_tree_host.h"
10 #include "ui/views/views_export.h" 10 #include "ui/views/views_export.h"
11 #include "ui/views/widget/desktop_aura/desktop_window_tree_host.h" 11 #include "ui/views/widget/desktop_aura/desktop_window_tree_host.h"
12 #include "ui/views/win/hwnd_message_handler_delegate.h" 12 #include "ui/views/win/hwnd_message_handler_delegate.h"
13 #include "ui/wm/public/animation_host.h" 13 #include "ui/wm/public/animation_host.h"
14 14
15 namespace aura { 15 namespace aura {
16 namespace client { 16 namespace client {
17 class DragDropClient; 17 class DragDropClient;
18 class FocusClient; 18 class FocusClient;
19 class ScopedTooltipDisabler; 19 class ScopedTooltipDisabler;
20 } 20 }
21 } 21 }
22 22
23 namespace views { 23 namespace views {
24 class DesktopDragDropClientWin; 24 class DesktopDragDropClientWin;
25 class HWNDMessageHandler; 25 class HWNDMessageHandler;
26 class NonClientFrameView;
26 27
27 namespace corewm { 28 namespace corewm {
28 class TooltipWin; 29 class TooltipWin;
29 } 30 }
30 31
31 class VIEWS_EXPORT DesktopWindowTreeHostWin 32 class VIEWS_EXPORT DesktopWindowTreeHostWin
32 : public DesktopWindowTreeHost, 33 : public DesktopWindowTreeHost,
33 public aura::client::AnimationHost, 34 public aura::client::AnimationHost,
34 public aura::WindowTreeHost, 35 public aura::WindowTreeHost,
35 public HWNDMessageHandlerDelegate { 36 public HWNDMessageHandlerDelegate {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 void SetVisibleOnAllWorkspaces(bool always_visible) override; 83 void SetVisibleOnAllWorkspaces(bool always_visible) override;
83 bool IsVisibleOnAllWorkspaces() const override; 84 bool IsVisibleOnAllWorkspaces() const override;
84 bool SetWindowTitle(const base::string16& title) override; 85 bool SetWindowTitle(const base::string16& title) override;
85 void ClearNativeFocus() override; 86 void ClearNativeFocus() override;
86 Widget::MoveLoopResult RunMoveLoop( 87 Widget::MoveLoopResult RunMoveLoop(
87 const gfx::Vector2d& drag_offset, 88 const gfx::Vector2d& drag_offset,
88 Widget::MoveLoopSource source, 89 Widget::MoveLoopSource source,
89 Widget::MoveLoopEscapeBehavior escape_behavior) override; 90 Widget::MoveLoopEscapeBehavior escape_behavior) override;
90 void EndMoveLoop() override; 91 void EndMoveLoop() override;
91 void SetVisibilityChangedAnimationsEnabled(bool value) override; 92 void SetVisibilityChangedAnimationsEnabled(bool value) override;
93 NonClientFrameView* CreateNonClientFrameView() override;
92 bool ShouldUseNativeFrame() const override; 94 bool ShouldUseNativeFrame() const override;
93 bool ShouldWindowContentsBeTransparent() const override; 95 bool ShouldWindowContentsBeTransparent() const override;
94 void FrameTypeChanged() override; 96 void FrameTypeChanged() override;
95 void SetFullscreen(bool fullscreen) override; 97 void SetFullscreen(bool fullscreen) override;
96 bool IsFullscreen() const override; 98 bool IsFullscreen() const override;
97 void SetOpacity(float opacity) override; 99 void SetOpacity(float opacity) override;
98 void SetWindowIcons(const gfx::ImageSkia& window_icon, 100 void SetWindowIcons(const gfx::ImageSkia& window_icon,
99 const gfx::ImageSkia& app_icon) override; 101 const gfx::ImageSkia& app_icon) override;
100 void InitModalType(ui::ModalType modal_type) override; 102 void InitModalType(ui::ModalType modal_type) override;
101 void FlashFrame(bool flash_frame) override; 103 void FlashFrame(bool flash_frame) override;
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 // Indicates if current window will receive mouse events when should not 265 // Indicates if current window will receive mouse events when should not
264 // become activated. 266 // become activated.
265 bool wants_mouse_events_when_inactive_ = false; 267 bool wants_mouse_events_when_inactive_ = false;
266 268
267 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostWin); 269 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostWin);
268 }; 270 };
269 271
270 } // namespace views 272 } // namespace views
271 273
272 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_ 274 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host.h ('k') | ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698