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 VIEWS_WIDGET_WIDGET_WIN_H_ | 5 #ifndef VIEWS_WIDGET_WIDGET_WIN_H_ |
6 #define VIEWS_WIDGET_WIDGET_WIN_H_ | 6 #define VIEWS_WIDGET_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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 // positive MSAA child id's which are direct leaf children of views that have | 113 // positive MSAA child id's which are direct leaf children of views that have |
114 // associated hWnd's (e.g. WidgetWin). | 114 // associated hWnd's (e.g. WidgetWin). |
115 int AddAccessibilityViewEvent(View* view); | 115 int AddAccessibilityViewEvent(View* view); |
116 | 116 |
117 // Clear a view that has recently been removed on a hierarchy change. | 117 // Clear a view that has recently been removed on a hierarchy change. |
118 void ClearAccessibilityViewEvent(View* view); | 118 void ClearAccessibilityViewEvent(View* view); |
119 | 119 |
120 // Overridden from Widget: | 120 // Overridden from Widget: |
121 virtual void Init(gfx::NativeView parent, const gfx::Rect& bounds) OVERRIDE; | 121 virtual void Init(gfx::NativeView parent, const gfx::Rect& bounds) OVERRIDE; |
122 virtual void InitWithWidget(Widget* parent, const gfx::Rect& bounds) OVERRIDE; | 122 virtual void InitWithWidget(Widget* parent, const gfx::Rect& bounds) OVERRIDE; |
123 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | |
124 virtual void MoveAbove(Widget* other) OVERRIDE; | |
125 virtual void SetShape(gfx::NativeRegion region) OVERRIDE; | |
126 virtual void Close() OVERRIDE; | |
127 virtual void CloseNow() OVERRIDE; | |
128 virtual void Show() OVERRIDE; | |
129 virtual void Hide() OVERRIDE; | |
130 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 123 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
131 virtual void SetOpacity(unsigned char opacity) OVERRIDE; | |
132 virtual void SetAlwaysOnTop(bool on_top) OVERRIDE; | |
133 virtual bool IsVisible() const OVERRIDE; | |
134 virtual bool IsActive() const OVERRIDE; | |
135 virtual bool IsAccessibleWidget() const OVERRIDE; | |
136 virtual void GenerateMousePressedForView(View* view, | 124 virtual void GenerateMousePressedForView(View* view, |
137 const gfx::Point& point) OVERRIDE; | 125 const gfx::Point& point) OVERRIDE; |
138 virtual bool GetAccelerator(int cmd_id, | 126 virtual bool GetAccelerator(int cmd_id, |
139 ui::Accelerator* accelerator) OVERRIDE; | 127 ui::Accelerator* accelerator) OVERRIDE; |
140 virtual Window* GetWindow() OVERRIDE; | 128 virtual Window* GetWindow() OVERRIDE; |
141 virtual const Window* GetWindow() const OVERRIDE; | 129 virtual const Window* GetWindow() const OVERRIDE; |
142 virtual void ViewHierarchyChanged(bool is_add, View *parent, | 130 virtual void ViewHierarchyChanged(bool is_add, View *parent, |
143 View *child) OVERRIDE; | 131 View *child) OVERRIDE; |
144 | 132 |
145 BOOL IsWindow() const { | 133 BOOL IsWindow() const { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 last_mouse_event_was_move_ = false; | 199 last_mouse_event_was_move_ = false; |
212 } | 200 } |
213 | 201 |
214 // Overridden from NativeWidget: | 202 // Overridden from NativeWidget: |
215 virtual Widget* GetWidget() OVERRIDE; | 203 virtual Widget* GetWidget() OVERRIDE; |
216 virtual void SetNativeWindowProperty(const char* name, void* value) OVERRIDE; | 204 virtual void SetNativeWindowProperty(const char* name, void* value) OVERRIDE; |
217 virtual void* GetNativeWindowProperty(const char* name) OVERRIDE; | 205 virtual void* GetNativeWindowProperty(const char* name) OVERRIDE; |
218 virtual TooltipManager* GetTooltipManager() const OVERRIDE; | 206 virtual TooltipManager* GetTooltipManager() const OVERRIDE; |
219 virtual gfx::Rect GetWindowScreenBounds() const OVERRIDE; | 207 virtual gfx::Rect GetWindowScreenBounds() const OVERRIDE; |
220 virtual gfx::Rect GetClientAreaScreenBounds() const OVERRIDE; | 208 virtual gfx::Rect GetClientAreaScreenBounds() const OVERRIDE; |
| 209 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
| 210 virtual void MoveAbove(Widget* widget) OVERRIDE; |
| 211 virtual void SetShape(gfx::NativeRegion shape) OVERRIDE; |
| 212 virtual void Close() OVERRIDE; |
| 213 virtual void CloseNow() OVERRIDE; |
| 214 virtual void Show() OVERRIDE; |
| 215 virtual void Hide() OVERRIDE; |
| 216 virtual void SetOpacity(unsigned char opacity) OVERRIDE; |
| 217 virtual void SetAlwaysOnTop(bool on_top) OVERRIDE; |
| 218 virtual bool IsVisible() const OVERRIDE; |
| 219 virtual bool IsActive() const OVERRIDE; |
| 220 virtual bool IsAccessibleWidget() const OVERRIDE; |
221 virtual bool ContainsNativeView(gfx::NativeView native_view) const OVERRIDE; | 221 virtual bool ContainsNativeView(gfx::NativeView native_view) const OVERRIDE; |
222 virtual void RunShellDrag(View* view, | 222 virtual void RunShellDrag(View* view, |
223 const ui::OSExchangeData& data, | 223 const ui::OSExchangeData& data, |
224 int operation) OVERRIDE; | 224 int operation) OVERRIDE; |
225 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; | 225 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; |
226 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; | 226 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; |
227 | 227 |
228 protected: | 228 protected: |
229 // Overridden from MessageLoop::Observer: | 229 // Overridden from MessageLoop::Observer: |
230 void WillProcessMessage(const MSG& msg) OVERRIDE; | 230 void WillProcessMessage(const MSG& msg) OVERRIDE; |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 gfx::NativeCursor previous_cursor_; | 569 gfx::NativeCursor previous_cursor_; |
570 | 570 |
571 ViewProps props_; | 571 ViewProps props_; |
572 | 572 |
573 DISALLOW_COPY_AND_ASSIGN(WidgetWin); | 573 DISALLOW_COPY_AND_ASSIGN(WidgetWin); |
574 }; | 574 }; |
575 | 575 |
576 } // namespace views | 576 } // namespace views |
577 | 577 |
578 #endif // VIEWS_WIDGET_WIDGET_WIN_H_ | 578 #endif // VIEWS_WIDGET_WIDGET_WIN_H_ |
OLD | NEW |