| OLD | NEW |
| 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" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 ~DesktopWindowTreeHostWin() override; | 41 ~DesktopWindowTreeHostWin() override; |
| 42 | 42 |
| 43 // A way of converting an HWND into a content window. | 43 // A way of converting an HWND into a content window. |
| 44 static aura::Window* GetContentWindowForHWND(HWND hwnd); | 44 static aura::Window* GetContentWindowForHWND(HWND hwnd); |
| 45 | 45 |
| 46 protected: | 46 protected: |
| 47 // Overridden from DesktopWindowTreeHost: | 47 // Overridden from DesktopWindowTreeHost: |
| 48 void Init(aura::Window* content_window, | 48 void Init(aura::Window* content_window, |
| 49 const Widget::InitParams& params) override; | 49 const Widget::InitParams& params) override; |
| 50 void OnNativeWidgetCreated(const Widget::InitParams& params) override; | 50 void OnNativeWidgetCreated(const Widget::InitParams& params) override; |
| 51 void OnNativeWidgetActivationChanged(bool active) override; |
| 51 void OnWidgetInitDone() override; | 52 void OnWidgetInitDone() override; |
| 52 std::unique_ptr<corewm::Tooltip> CreateTooltip() override; | 53 std::unique_ptr<corewm::Tooltip> CreateTooltip() override; |
| 53 std::unique_ptr<aura::client::DragDropClient> CreateDragDropClient( | 54 std::unique_ptr<aura::client::DragDropClient> CreateDragDropClient( |
| 54 DesktopNativeCursorManager* cursor_manager) override; | 55 DesktopNativeCursorManager* cursor_manager) override; |
| 55 void Close() override; | 56 void Close() override; |
| 56 void CloseNow() override; | 57 void CloseNow() override; |
| 57 aura::WindowTreeHost* AsWindowTreeHost() override; | 58 aura::WindowTreeHost* AsWindowTreeHost() override; |
| 58 void ShowWindowWithState(ui::WindowShowState show_state) override; | 59 void ShowWindowWithState(ui::WindowShowState show_state) override; |
| 59 void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) override; | 60 void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) override; |
| 60 bool IsVisible() const override; | 61 bool IsVisible() const override; |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 // Indicates if current window will receive mouse events when should not | 270 // Indicates if current window will receive mouse events when should not |
| 270 // become activated. | 271 // become activated. |
| 271 bool wants_mouse_events_when_inactive_ = false; | 272 bool wants_mouse_events_when_inactive_ = false; |
| 272 | 273 |
| 273 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostWin); | 274 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostWin); |
| 274 }; | 275 }; |
| 275 | 276 |
| 276 } // namespace views | 277 } // namespace views |
| 277 | 278 |
| 278 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_ | 279 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_ |
| OLD | NEW |