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_NATIVE_WIDGET_WIN_H_ | 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ |
6 #define VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ | 6 #define 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 virtual TooltipManager* GetTooltipManager() const OVERRIDE; | 202 virtual TooltipManager* GetTooltipManager() const OVERRIDE; |
203 virtual bool IsScreenReaderActive() const OVERRIDE; | 203 virtual bool IsScreenReaderActive() const OVERRIDE; |
204 virtual void SendNativeAccessibilityEvent( | 204 virtual void SendNativeAccessibilityEvent( |
205 View* view, | 205 View* view, |
206 ui::AccessibilityTypes::Event event_type) OVERRIDE; | 206 ui::AccessibilityTypes::Event event_type) OVERRIDE; |
207 virtual void SetMouseCapture() OVERRIDE; | 207 virtual void SetMouseCapture() OVERRIDE; |
208 virtual void ReleaseMouseCapture() OVERRIDE; | 208 virtual void ReleaseMouseCapture() OVERRIDE; |
209 virtual bool HasMouseCapture() const OVERRIDE; | 209 virtual bool HasMouseCapture() const OVERRIDE; |
210 virtual InputMethod* CreateInputMethod() OVERRIDE; | 210 virtual InputMethod* CreateInputMethod() OVERRIDE; |
211 virtual void CenterWindow(const gfx::Size& size) OVERRIDE; | 211 virtual void CenterWindow(const gfx::Size& size) OVERRIDE; |
212 virtual void GetWindowBoundsAndMaximizedState(gfx::Rect* bounds, | 212 virtual void GetWindowPlacement( |
213 bool* maximized) const OVERRIDE; | 213 gfx::Rect* bounds, |
| 214 ui::WindowShowState* show_state) const OVERRIDE; |
214 virtual void SetWindowTitle(const std::wstring& title) OVERRIDE; | 215 virtual void SetWindowTitle(const std::wstring& title) OVERRIDE; |
215 virtual void SetWindowIcons(const SkBitmap& window_icon, | 216 virtual void SetWindowIcons(const SkBitmap& window_icon, |
216 const SkBitmap& app_icon) OVERRIDE; | 217 const SkBitmap& app_icon) OVERRIDE; |
217 virtual void SetAccessibleName(const std::wstring& name) OVERRIDE; | 218 virtual void SetAccessibleName(const std::wstring& name) OVERRIDE; |
218 virtual void SetAccessibleRole(ui::AccessibilityTypes::Role role) OVERRIDE; | 219 virtual void SetAccessibleRole(ui::AccessibilityTypes::Role role) OVERRIDE; |
219 virtual void SetAccessibleState(ui::AccessibilityTypes::State state) OVERRIDE; | 220 virtual void SetAccessibleState(ui::AccessibilityTypes::State state) OVERRIDE; |
220 virtual void BecomeModal() OVERRIDE; | 221 virtual void BecomeModal() OVERRIDE; |
221 virtual gfx::Rect GetWindowScreenBounds() const OVERRIDE; | 222 virtual gfx::Rect GetWindowScreenBounds() const OVERRIDE; |
222 virtual gfx::Rect GetClientAreaScreenBounds() const OVERRIDE; | 223 virtual gfx::Rect GetClientAreaScreenBounds() const OVERRIDE; |
223 virtual gfx::Rect GetRestoredBounds() const OVERRIDE; | 224 virtual gfx::Rect GetRestoredBounds() const OVERRIDE; |
224 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 225 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
225 virtual void SetSize(const gfx::Size& size) OVERRIDE; | 226 virtual void SetSize(const gfx::Size& size) OVERRIDE; |
226 virtual void SetBoundsConstrained(const gfx::Rect& bounds, | 227 virtual void SetBoundsConstrained(const gfx::Rect& bounds, |
227 Widget* other_widget) OVERRIDE; | 228 Widget* other_widget) OVERRIDE; |
228 virtual void MoveAbove(gfx::NativeView native_view) OVERRIDE; | 229 virtual void MoveAbove(gfx::NativeView native_view) OVERRIDE; |
229 virtual void MoveToTop() OVERRIDE; | 230 virtual void MoveToTop() OVERRIDE; |
230 virtual void SetShape(gfx::NativeRegion shape) OVERRIDE; | 231 virtual void SetShape(gfx::NativeRegion shape) OVERRIDE; |
231 virtual void Close() OVERRIDE; | 232 virtual void Close() OVERRIDE; |
232 virtual void CloseNow() OVERRIDE; | 233 virtual void CloseNow() OVERRIDE; |
233 virtual void EnableClose(bool enable) OVERRIDE; | 234 virtual void EnableClose(bool enable) OVERRIDE; |
234 virtual void Show() OVERRIDE; | 235 virtual void Show() OVERRIDE; |
235 virtual void Hide() OVERRIDE; | 236 virtual void Hide() OVERRIDE; |
236 virtual void ShowMaximizedWithBounds( | 237 virtual void ShowMaximizedWithBounds( |
237 const gfx::Rect& restored_bounds) OVERRIDE; | 238 const gfx::Rect& restored_bounds) OVERRIDE; |
238 virtual void ShowWithState(ShowState state) OVERRIDE; | 239 virtual void ShowWithWindowState(ui::WindowShowState show_state) OVERRIDE; |
239 virtual bool IsVisible() const OVERRIDE; | 240 virtual bool IsVisible() const OVERRIDE; |
240 virtual void Activate() OVERRIDE; | 241 virtual void Activate() OVERRIDE; |
241 virtual void Deactivate() OVERRIDE; | 242 virtual void Deactivate() OVERRIDE; |
242 virtual bool IsActive() const OVERRIDE; | 243 virtual bool IsActive() const OVERRIDE; |
243 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE; | 244 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE; |
244 virtual void Maximize() OVERRIDE; | 245 virtual void Maximize() OVERRIDE; |
245 virtual void Minimize() OVERRIDE; | 246 virtual void Minimize() OVERRIDE; |
246 virtual bool IsMaximized() const OVERRIDE; | 247 virtual bool IsMaximized() const OVERRIDE; |
247 virtual bool IsMinimized() const OVERRIDE; | 248 virtual bool IsMinimized() const OVERRIDE; |
248 virtual void Restore() OVERRIDE; | 249 virtual void Restore() OVERRIDE; |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 | 644 |
644 // The compositor for accelerated drawing. | 645 // The compositor for accelerated drawing. |
645 scoped_refptr<ui::Compositor> compositor_; | 646 scoped_refptr<ui::Compositor> compositor_; |
646 | 647 |
647 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); | 648 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); |
648 }; | 649 }; |
649 | 650 |
650 } // namespace views | 651 } // namespace views |
651 | 652 |
652 #endif // VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ | 653 #endif // VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ |
OLD | NEW |