| 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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 virtual void OnScreenReaderDetected(); | 392 virtual void OnScreenReaderDetected(); |
| 393 | 393 |
| 394 // Sets-up the focus manager with the view that should have focus when the | 394 // Sets-up the focus manager with the view that should have focus when the |
| 395 // window is shown the first time. If NULL is returned, the focus goes to the | 395 // window is shown the first time. If NULL is returned, the focus goes to the |
| 396 // button if there is one, otherwise the to the Cancel button. | 396 // button if there is one, otherwise the to the Cancel button. |
| 397 virtual void SetInitialFocus(); | 397 virtual void SetInitialFocus(); |
| 398 | 398 |
| 399 // Executes the specified SC_command. | 399 // Executes the specified SC_command. |
| 400 void ExecuteSystemMenuCommand(int command); | 400 void ExecuteSystemMenuCommand(int command); |
| 401 | 401 |
| 402 // The TooltipManager. | 402 // The TooltipManager. This is NULL if there is a problem creating the |
| 403 // underlying tooltip window. |
| 403 // WARNING: RootView's destructor calls into the TooltipManager. As such, this | 404 // WARNING: RootView's destructor calls into the TooltipManager. As such, this |
| 404 // must be destroyed AFTER root_view_. | 405 // must be destroyed AFTER root_view_. |
| 405 scoped_ptr<TooltipManagerWin> tooltip_manager_; | 406 scoped_ptr<TooltipManagerWin> tooltip_manager_; |
| 406 | 407 |
| 407 scoped_refptr<DropTargetWin> drop_target_; | 408 scoped_refptr<DropTargetWin> drop_target_; |
| 408 | 409 |
| 409 // Are a subclass of NativeWindowWin? | 410 // Are a subclass of NativeWindowWin? |
| 410 bool is_window_; | 411 bool is_window_; |
| 411 | 412 |
| 412 const gfx::Rect& invalid_rect() const { return invalid_rect_; } | 413 const gfx::Rect& invalid_rect() const { return invalid_rect_; } |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 | 525 |
| 525 // Indicates if the |input_method_| is an InputMethodWin instance. | 526 // Indicates if the |input_method_| is an InputMethodWin instance. |
| 526 bool is_input_method_win_; | 527 bool is_input_method_win_; |
| 527 | 528 |
| 528 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); | 529 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); |
| 529 }; | 530 }; |
| 530 | 531 |
| 531 } // namespace views | 532 } // namespace views |
| 532 | 533 |
| 533 #endif // VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ | 534 #endif // VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ |
| OLD | NEW |