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