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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 virtual void RunShellDrag(View* view, | 157 virtual void RunShellDrag(View* view, |
158 const ui::OSExchangeData& data, | 158 const ui::OSExchangeData& data, |
159 const gfx::Point& location, | 159 const gfx::Point& location, |
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::Point& 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 | 170 |
171 protected: | 171 protected: |
172 // Deletes this window as it is destroyed, override to provide different | 172 // Deletes this window as it is destroyed, override to provide different |
173 // behavior. | 173 // behavior. |
174 virtual void OnFinalMessage(HWND window); | 174 virtual void OnFinalMessage(HWND window); |
175 | 175 |
176 // Called when a MSAA screen reader client is detected. | 176 // Called when a MSAA screen reader client is detected. |
177 virtual void OnScreenReaderDetected(); | 177 virtual void OnScreenReaderDetected(); |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 bool has_non_client_view_; | 301 bool has_non_client_view_; |
302 | 302 |
303 scoped_ptr<HWNDMessageHandler> message_handler_; | 303 scoped_ptr<HWNDMessageHandler> message_handler_; |
304 | 304 |
305 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); | 305 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); |
306 }; | 306 }; |
307 | 307 |
308 } // namespace views | 308 } // namespace views |
309 | 309 |
310 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ | 310 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ |
OLD | NEW |