| 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 OnNativeWidgetInitDone() override; |
| 51 std::unique_ptr<corewm::Tooltip> CreateTooltip() override; | 52 std::unique_ptr<corewm::Tooltip> CreateTooltip() override; |
| 52 std::unique_ptr<aura::client::DragDropClient> CreateDragDropClient( | 53 std::unique_ptr<aura::client::DragDropClient> CreateDragDropClient( |
| 53 DesktopNativeCursorManager* cursor_manager) override; | 54 DesktopNativeCursorManager* cursor_manager) override; |
| 54 void Close() override; | 55 void Close() override; |
| 55 void CloseNow() override; | 56 void CloseNow() override; |
| 56 aura::WindowTreeHost* AsWindowTreeHost() override; | 57 aura::WindowTreeHost* AsWindowTreeHost() override; |
| 57 void ShowWindowWithState(ui::WindowShowState show_state) override; | 58 void ShowWindowWithState(ui::WindowShowState show_state) override; |
| 58 void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) override; | 59 void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) override; |
| 59 bool IsVisible() const override; | 60 bool IsVisible() const override; |
| 60 void SetSize(const gfx::Size& size) override; | 61 void SetSize(const gfx::Size& size) override; |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 void HandleMove() override; | 170 void HandleMove() override; |
| 170 void HandleWorkAreaChanged() override; | 171 void HandleWorkAreaChanged() override; |
| 171 void HandleVisibilityChanging(bool visible) override; | 172 void HandleVisibilityChanging(bool visible) override; |
| 172 void HandleVisibilityChanged(bool visible) override; | 173 void HandleVisibilityChanged(bool visible) override; |
| 173 void HandleClientSizeChanged(const gfx::Size& new_size) override; | 174 void HandleClientSizeChanged(const gfx::Size& new_size) override; |
| 174 void HandleFrameChanged() override; | 175 void HandleFrameChanged() override; |
| 175 void HandleNativeFocus(HWND last_focused_window) override; | 176 void HandleNativeFocus(HWND last_focused_window) override; |
| 176 void HandleNativeBlur(HWND focused_window) override; | 177 void HandleNativeBlur(HWND focused_window) override; |
| 177 bool HandleMouseEvent(const ui::MouseEvent& event) override; | 178 bool HandleMouseEvent(const ui::MouseEvent& event) override; |
| 178 void HandleKeyEvent(ui::KeyEvent* event) override; | 179 void HandleKeyEvent(ui::KeyEvent* event) override; |
| 180 void HandleSizing(UINT edge, RECT* rect) override; |
| 179 void HandleTouchEvent(const ui::TouchEvent& event) override; | 181 void HandleTouchEvent(const ui::TouchEvent& event) override; |
| 180 bool HandleIMEMessage(UINT message, | 182 bool HandleIMEMessage(UINT message, |
| 181 WPARAM w_param, | 183 WPARAM w_param, |
| 182 LPARAM l_param, | 184 LPARAM l_param, |
| 183 LRESULT* result) override; | 185 LRESULT* result) override; |
| 184 void HandleInputLanguageChange(DWORD character_set, | 186 void HandleInputLanguageChange(DWORD character_set, |
| 185 HKL input_language_id) override; | 187 HKL input_language_id) override; |
| 186 void HandlePaintAccelerated(const gfx::Rect& invalid_rect) override; | 188 void HandlePaintAccelerated(const gfx::Rect& invalid_rect) override; |
| 187 bool HandleTooltipNotify(int w_param, | 189 bool HandleTooltipNotify(int w_param, |
| 188 NMHDR* l_param, | 190 NMHDR* l_param, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 // Indicates if current window will receive mouse events when should not | 267 // Indicates if current window will receive mouse events when should not |
| 266 // become activated. | 268 // become activated. |
| 267 bool wants_mouse_events_when_inactive_ = false; | 269 bool wants_mouse_events_when_inactive_ = false; |
| 268 | 270 |
| 269 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostWin); | 271 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostWin); |
| 270 }; | 272 }; |
| 271 | 273 |
| 272 } // namespace views | 274 } // namespace views |
| 273 | 275 |
| 274 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_ | 276 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_ |
| OLD | NEW |