| 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_AURA_ROOT_WINDOW_HOST_WIN_H_ | 5 #ifndef UI_AURA_ROOT_WINDOW_HOST_WIN_H_ |
| 6 #define UI_AURA_ROOT_WINDOW_HOST_WIN_H_ | 6 #define UI_AURA_ROOT_WINDOW_HOST_WIN_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "ui/aura/root_window_host.h" | 9 #include "ui/aura/root_window_host.h" |
| 10 #include "ui/base/ui_export.h" | 10 #include "ui/base/ui_export.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; | 37 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; |
| 38 virtual bool CopyAreaToSkCanvas(const gfx::Rect& source_bounds, | 38 virtual bool CopyAreaToSkCanvas(const gfx::Rect& source_bounds, |
| 39 const gfx::Point& dest_offset, | 39 const gfx::Point& dest_offset, |
| 40 SkCanvas* canvas) OVERRIDE; | 40 SkCanvas* canvas) OVERRIDE; |
| 41 virtual bool GrabSnapshot( | 41 virtual bool GrabSnapshot( |
| 42 const gfx::Rect& snapshot_bounds, | 42 const gfx::Rect& snapshot_bounds, |
| 43 std::vector<unsigned char>* png_representation) OVERRIDE; | 43 std::vector<unsigned char>* png_representation) OVERRIDE; |
| 44 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; | 44 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; |
| 45 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 45 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
| 46 virtual void PrepareForShutdown() OVERRIDE; | 46 virtual void PrepareForShutdown() OVERRIDE; |
| 47 virtual void SetHostWindowProperty(const std::string& name, |
| 48 int value) OVERRIDE; |
| 47 | 49 |
| 48 private: | 50 private: |
| 49 BEGIN_MSG_MAP_EX(RootWindowHostWin) | 51 BEGIN_MSG_MAP_EX(RootWindowHostWin) |
| 50 // Range handlers must go first! | 52 // Range handlers must go first! |
| 51 MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange) | 53 MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange) |
| 52 MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, WM_NCXBUTTONDBLCLK, OnMouseRange) | 54 MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, WM_NCXBUTTONDBLCLK, OnMouseRange) |
| 53 | 55 |
| 54 // Mouse capture events. | 56 // Mouse capture events. |
| 55 MESSAGE_HANDLER_EX(WM_CAPTURECHANGED, OnCaptureChanged) | 57 MESSAGE_HANDLER_EX(WM_CAPTURECHANGED, OnCaptureChanged) |
| 56 | 58 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 // Set true to let RootWindowHostWin use a popup window | 97 // Set true to let RootWindowHostWin use a popup window |
| 96 // with no frame/title so that the window size and test's | 98 // with no frame/title so that the window size and test's |
| 97 // expectations matches. | 99 // expectations matches. |
| 98 AURA_EXPORT void SetUsePopupAsRootWindowForTest(bool use); | 100 AURA_EXPORT void SetUsePopupAsRootWindowForTest(bool use); |
| 99 | 101 |
| 100 } // namespace | 102 } // namespace |
| 101 | 103 |
| 102 } // namespace aura | 104 } // namespace aura |
| 103 | 105 |
| 104 #endif // UI_AURA_ROOT_WINDOW_HOST_WIN_H_ | 106 #endif // UI_AURA_ROOT_WINDOW_HOST_WIN_H_ |
| OLD | NEW |