OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <atlbase.h> | 9 #include <atlbase.h> |
10 #include <atlapp.h> | 10 #include <atlapp.h> |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 virtual void SetOpacity(unsigned char opacity) OVERRIDE; | 245 virtual void SetOpacity(unsigned char opacity) OVERRIDE; |
246 virtual void SetUseDragFrame(bool use_drag_frame) OVERRIDE; | 246 virtual void SetUseDragFrame(bool use_drag_frame) OVERRIDE; |
247 virtual bool IsAccessibleWidget() const OVERRIDE; | 247 virtual bool IsAccessibleWidget() const OVERRIDE; |
248 virtual void RunShellDrag(View* view, | 248 virtual void RunShellDrag(View* view, |
249 const ui::OSExchangeData& data, | 249 const ui::OSExchangeData& data, |
250 int operation) OVERRIDE; | 250 int operation) OVERRIDE; |
251 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; | 251 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; |
252 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; | 252 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; |
253 virtual void ClearNativeFocus() OVERRIDE; | 253 virtual void ClearNativeFocus() OVERRIDE; |
254 virtual void FocusNativeView(gfx::NativeView native_view) OVERRIDE; | 254 virtual void FocusNativeView(gfx::NativeView native_view) OVERRIDE; |
255 virtual bool ConvertPointFromAncestor( | |
256 const Widget* ancestor, gfx::Point* point) const OVERRIDE; | |
257 virtual gfx::Rect GetWorkAreaBoundsInScreen() const OVERRIDE; | 255 virtual gfx::Rect GetWorkAreaBoundsInScreen() const OVERRIDE; |
258 virtual void SetInactiveRenderingDisabled(bool value) OVERRIDE; | 256 virtual void SetInactiveRenderingDisabled(bool value) OVERRIDE; |
259 | 257 |
260 protected: | 258 protected: |
261 // Information saved before going into fullscreen mode, used to restore the | 259 // Information saved before going into fullscreen mode, used to restore the |
262 // window afterwards. | 260 // window afterwards. |
263 struct SavedWindowInfo { | 261 struct SavedWindowInfo { |
264 bool maximized; | 262 bool maximized; |
265 LONG style; | 263 LONG style; |
266 LONG ex_style; | 264 LONG ex_style; |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
654 // rather than asking the Widget for the non_client_view so that we know at | 652 // rather than asking the Widget for the non_client_view so that we know at |
655 // Init time, before the Widget has created the NonClientView. | 653 // Init time, before the Widget has created the NonClientView. |
656 bool has_non_client_view_; | 654 bool has_non_client_view_; |
657 | 655 |
658 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); | 656 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); |
659 }; | 657 }; |
660 | 658 |
661 } // namespace views | 659 } // namespace views |
662 | 660 |
663 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ | 661 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ |
OLD | NEW |