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_NATIVE_WIDGET_WIN_H_ | 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ |
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ | 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 int operation) OVERRIDE; | 160 int operation) OVERRIDE; |
161 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; | 161 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; |
162 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; | 162 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; |
163 virtual void ClearNativeFocus() OVERRIDE; | 163 virtual void ClearNativeFocus() OVERRIDE; |
164 virtual gfx::Rect GetWorkAreaBoundsInScreen() const OVERRIDE; | 164 virtual gfx::Rect GetWorkAreaBoundsInScreen() const OVERRIDE; |
165 virtual void SetInactiveRenderingDisabled(bool value) OVERRIDE; | 165 virtual void SetInactiveRenderingDisabled(bool value) OVERRIDE; |
166 virtual Widget::MoveLoopResult RunMoveLoop( | 166 virtual Widget::MoveLoopResult RunMoveLoop( |
167 const gfx::Vector2d& drag_offset) OVERRIDE; | 167 const gfx::Vector2d& drag_offset) OVERRIDE; |
168 virtual void EndMoveLoop() OVERRIDE; | 168 virtual void EndMoveLoop() OVERRIDE; |
169 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE; | 169 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE; |
| 170 virtual ui::NativeTheme* GetNativeTheme() OVERRIDE; |
170 | 171 |
171 protected: | 172 protected: |
172 // Deletes this window as it is destroyed, override to provide different | 173 // Deletes this window as it is destroyed, override to provide different |
173 // behavior. | 174 // behavior. |
174 virtual void OnFinalMessage(HWND window); | 175 virtual void OnFinalMessage(HWND window); |
175 | 176 |
176 // Called when a MSAA screen reader client is detected. | 177 // Called when a MSAA screen reader client is detected. |
177 virtual void OnScreenReaderDetected(); | 178 virtual void OnScreenReaderDetected(); |
178 | 179 |
179 HWNDMessageHandler* GetMessageHandler(); | 180 HWNDMessageHandler* GetMessageHandler(); |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 bool has_non_client_view_; | 302 bool has_non_client_view_; |
302 | 303 |
303 scoped_ptr<HWNDMessageHandler> message_handler_; | 304 scoped_ptr<HWNDMessageHandler> message_handler_; |
304 | 305 |
305 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); | 306 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); |
306 }; | 307 }; |
307 | 308 |
308 } // namespace views | 309 } // namespace views |
309 | 310 |
310 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ | 311 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ |
OLD | NEW |