| 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 virtual gfx::Rect GetWindowScreenBounds() const OVERRIDE; | 190 virtual gfx::Rect GetWindowScreenBounds() const OVERRIDE; |
| 191 virtual gfx::Rect GetClientAreaScreenBounds() const OVERRIDE; | 191 virtual gfx::Rect GetClientAreaScreenBounds() const OVERRIDE; |
| 192 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 192 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
| 193 virtual void SetSize(const gfx::Size& size) OVERRIDE; | 193 virtual void SetSize(const gfx::Size& size) OVERRIDE; |
| 194 virtual void MoveAbove(gfx::NativeView native_view) OVERRIDE; | 194 virtual void MoveAbove(gfx::NativeView native_view) OVERRIDE; |
| 195 virtual void SetShape(gfx::NativeRegion shape) OVERRIDE; | 195 virtual void SetShape(gfx::NativeRegion shape) OVERRIDE; |
| 196 virtual void Close() OVERRIDE; | 196 virtual void Close() OVERRIDE; |
| 197 virtual void CloseNow() OVERRIDE; | 197 virtual void CloseNow() OVERRIDE; |
| 198 virtual void Show() OVERRIDE; | 198 virtual void Show() OVERRIDE; |
| 199 virtual void Hide() OVERRIDE; | 199 virtual void Hide() OVERRIDE; |
| 200 virtual bool IsVisible() const OVERRIDE; |
| 201 virtual void Activate() OVERRIDE; |
| 202 virtual void Deactivate() OVERRIDE; |
| 203 virtual bool IsActive() const OVERRIDE; |
| 204 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE; |
| 205 virtual void Maximize() OVERRIDE; |
| 206 virtual void Minimize() OVERRIDE; |
| 207 virtual bool IsMaximized() const OVERRIDE; |
| 208 virtual bool IsMinimized() const OVERRIDE; |
| 209 virtual void Restore() OVERRIDE; |
| 200 virtual void SetOpacity(unsigned char opacity) OVERRIDE; | 210 virtual void SetOpacity(unsigned char opacity) OVERRIDE; |
| 201 virtual void SetAlwaysOnTop(bool on_top) OVERRIDE; | |
| 202 virtual bool IsVisible() const OVERRIDE; | |
| 203 virtual bool IsActive() const OVERRIDE; | |
| 204 virtual bool IsAccessibleWidget() const OVERRIDE; | 211 virtual bool IsAccessibleWidget() const OVERRIDE; |
| 205 virtual bool ContainsNativeView(gfx::NativeView native_view) const OVERRIDE; | 212 virtual bool ContainsNativeView(gfx::NativeView native_view) const OVERRIDE; |
| 206 virtual void RunShellDrag(View* view, | 213 virtual void RunShellDrag(View* view, |
| 207 const ui::OSExchangeData& data, | 214 const ui::OSExchangeData& data, |
| 208 int operation) OVERRIDE; | 215 int operation) OVERRIDE; |
| 209 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; | 216 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; |
| 210 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; | 217 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; |
| 211 | 218 |
| 212 protected: | 219 protected: |
| 213 // Overridden from MessageLoop::Observer: | 220 // Overridden from MessageLoop::Observer: |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 void TrackMouseEvents(DWORD mouse_tracking_flags); | 387 void TrackMouseEvents(DWORD mouse_tracking_flags); |
| 381 | 388 |
| 382 // Called when a MSAA screen reader client is detected. | 389 // Called when a MSAA screen reader client is detected. |
| 383 virtual void OnScreenReaderDetected(); | 390 virtual void OnScreenReaderDetected(); |
| 384 | 391 |
| 385 // Sets-up the focus manager with the view that should have focus when the | 392 // Sets-up the focus manager with the view that should have focus when the |
| 386 // window is shown the first time. If NULL is returned, the focus goes to the | 393 // window is shown the first time. If NULL is returned, the focus goes to the |
| 387 // button if there is one, otherwise the to the Cancel button. | 394 // button if there is one, otherwise the to the Cancel button. |
| 388 virtual void SetInitialFocus(); | 395 virtual void SetInitialFocus(); |
| 389 | 396 |
| 397 // Executes the specified SC_command. |
| 398 void ExecuteSystemMenuCommand(int command); |
| 399 |
| 390 // The TooltipManager. | 400 // The TooltipManager. |
| 391 // WARNING: RootView's destructor calls into the TooltipManager. As such, this | 401 // WARNING: RootView's destructor calls into the TooltipManager. As such, this |
| 392 // must be destroyed AFTER root_view_. | 402 // must be destroyed AFTER root_view_. |
| 393 scoped_ptr<TooltipManagerWin> tooltip_manager_; | 403 scoped_ptr<TooltipManagerWin> tooltip_manager_; |
| 394 | 404 |
| 395 scoped_refptr<DropTargetWin> drop_target_; | 405 scoped_refptr<DropTargetWin> drop_target_; |
| 396 | 406 |
| 397 // Are a subclass of NativeWindowWin? | 407 // Are a subclass of NativeWindowWin? |
| 398 bool is_window_; | 408 bool is_window_; |
| 399 | 409 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 | 522 |
| 513 // Indicates if the |input_method_| is an InputMethodWin instance. | 523 // Indicates if the |input_method_| is an InputMethodWin instance. |
| 514 bool is_input_method_win_; | 524 bool is_input_method_win_; |
| 515 | 525 |
| 516 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); | 526 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); |
| 517 }; | 527 }; |
| 518 | 528 |
| 519 } // namespace views | 529 } // namespace views |
| 520 | 530 |
| 521 #endif // VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ | 531 #endif // VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ |
| OLD | NEW |