| 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_WIN_HWND_MESSAGE_HANDLER_H_ | 5 #ifndef UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
| 6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ | 6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <atlapp.h> | 9 #include <atlapp.h> |
| 10 #include <atlmisc.h> | 10 #include <atlmisc.h> |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 void InitModalType(ui::ModalType modal_type); | 68 void InitModalType(ui::ModalType modal_type); |
| 69 | 69 |
| 70 void Close(); | 70 void Close(); |
| 71 void CloseNow(); | 71 void CloseNow(); |
| 72 | 72 |
| 73 gfx::Rect GetWindowBoundsInScreen() const; | 73 gfx::Rect GetWindowBoundsInScreen() const; |
| 74 gfx::Rect GetClientAreaBoundsInScreen() const; | 74 gfx::Rect GetClientAreaBoundsInScreen() const; |
| 75 gfx::Rect GetRestoredBounds() const; | 75 gfx::Rect GetRestoredBounds() const; |
| 76 void GetWindowPlacement(gfx::Rect* bounds, | 76 void GetWindowPlacement(gfx::Rect* bounds, |
| 77 ui::WindowShowState* show_state) const; | 77 ui::WindowShowState* show_state) const; |
| 78 gfx::Rect GetWorkAreaBoundsInScreen() const; | |
| 79 | 78 |
| 80 void SetBounds(const gfx::Rect& bounds); | 79 void SetBounds(const gfx::Rect& bounds); |
| 81 void SetSize(const gfx::Size& size); | 80 void SetSize(const gfx::Size& size); |
| 82 void CenterWindow(const gfx::Size& size); | 81 void CenterWindow(const gfx::Size& size); |
| 83 | 82 |
| 84 void SetRegion(HRGN rgn); | 83 void SetRegion(HRGN rgn); |
| 85 | 84 |
| 86 void StackAbove(HWND other_hwnd); | 85 void StackAbove(HWND other_hwnd); |
| 87 void StackAtTop(); | 86 void StackAtTop(); |
| 88 | 87 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 119 void FocusHWND(HWND hwnd); | 118 void FocusHWND(HWND hwnd); |
| 120 | 119 |
| 121 void SetCapture(); | 120 void SetCapture(); |
| 122 void ReleaseCapture(); | 121 void ReleaseCapture(); |
| 123 bool HasCapture() const; | 122 bool HasCapture() const; |
| 124 | 123 |
| 125 FullscreenHandler* fullscreen_handler() { return fullscreen_handler_.get(); } | 124 FullscreenHandler* fullscreen_handler() { return fullscreen_handler_.get(); } |
| 126 | 125 |
| 127 void SetVisibilityChangedAnimationsEnabled(bool enabled); | 126 void SetVisibilityChangedAnimationsEnabled(bool enabled); |
| 128 | 127 |
| 129 InputMethod* CreateInputMethod(); | |
| 130 | |
| 131 void SetTitle(const string16& title); | 128 void SetTitle(const string16& title); |
| 132 | 129 |
| 133 void SetAccessibleName(const string16& name); | 130 void SetAccessibleName(const string16& name); |
| 134 void SetAccessibleRole(ui::AccessibilityTypes::Role role); | 131 void SetAccessibleRole(ui::AccessibilityTypes::Role role); |
| 135 void SetAccessibleState(ui::AccessibilityTypes::State state); | 132 void SetAccessibleState(ui::AccessibilityTypes::State state); |
| 136 void SendNativeAccessibilityEvent(int id, | 133 void SendNativeAccessibilityEvent(int id, |
| 137 ui::AccessibilityTypes::Event event_type); | 134 ui::AccessibilityTypes::Event event_type); |
| 138 | 135 |
| 139 void SetCursor(HCURSOR cursor); | 136 void SetCursor(HCURSOR cursor); |
| 140 | 137 |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 // True if we are allowed to update the layered window from the DIB backing | 457 // True if we are allowed to update the layered window from the DIB backing |
| 461 // store if necessary. | 458 // store if necessary. |
| 462 bool can_update_layered_window_; | 459 bool can_update_layered_window_; |
| 463 | 460 |
| 464 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); | 461 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); |
| 465 }; | 462 }; |
| 466 | 463 |
| 467 } // namespace views | 464 } // namespace views |
| 468 | 465 |
| 469 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ | 466 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
| OLD | NEW |