| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 5 #ifndef CHROME_BROWSER_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
| 6 #define CHROME_BROWSER_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 6 #define CHROME_BROWSER_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <atlapp.h> | 9 #include <atlapp.h> |
| 10 #include <atlcrack.h> | 10 #include <atlcrack.h> |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 public RenderWidgetHostView { | 58 public RenderWidgetHostView { |
| 59 public: | 59 public: |
| 60 // The view will associate itself with the given widget. | 60 // The view will associate itself with the given widget. |
| 61 explicit RenderWidgetHostViewWin(RenderWidgetHost* widget); | 61 explicit RenderWidgetHostViewWin(RenderWidgetHost* widget); |
| 62 virtual ~RenderWidgetHostViewWin(); | 62 virtual ~RenderWidgetHostViewWin(); |
| 63 | 63 |
| 64 void set_close_on_deactivate(bool close_on_deactivate) { | 64 void set_close_on_deactivate(bool close_on_deactivate) { |
| 65 close_on_deactivate_ = close_on_deactivate; | 65 close_on_deactivate_ = close_on_deactivate; |
| 66 } | 66 } |
| 67 | 67 |
| 68 void set_focus_on_show(bool focus) { | 68 void set_activatable(bool activatable) { |
| 69 focus_on_show_ = focus; | 69 activatable_ = activatable; |
| 70 } | 70 } |
| 71 bool focus_on_show() const { return focus_on_show_; } | 71 bool activatable() const { return activatable_; } |
| 72 | 72 |
| 73 void set_parent_hwnd(HWND parent) { parent_hwnd_ = parent; } | 73 void set_parent_hwnd(HWND parent) { parent_hwnd_ = parent; } |
| 74 | 74 |
| 75 DECLARE_WND_CLASS_EX(kRenderWidgetHostHWNDClass, CS_DBLCLKS, 0); | 75 DECLARE_WND_CLASS_EX(kRenderWidgetHostHWNDClass, CS_DBLCLKS, 0); |
| 76 | 76 |
| 77 BEGIN_MSG_MAP(RenderWidgetHostHWND) | 77 BEGIN_MSG_MAP(RenderWidgetHostHWND) |
| 78 MSG_WM_CREATE(OnCreate) | 78 MSG_WM_CREATE(OnCreate) |
| 79 MSG_WM_ACTIVATE(OnActivate) | 79 MSG_WM_ACTIVATE(OnActivate) |
| 80 MSG_WM_DESTROY(OnDestroy) | 80 MSG_WM_DESTROY(OnDestroy) |
| 81 MSG_WM_PAINT(OnPaint) | 81 MSG_WM_PAINT(OnPaint) |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 | 259 |
| 260 // Instance of accessibility information for the root of the MSAA | 260 // Instance of accessibility information for the root of the MSAA |
| 261 // tree representation of the WebKit render tree. | 261 // tree representation of the WebKit render tree. |
| 262 CComPtr<IAccessible> browser_accessibility_root_; | 262 CComPtr<IAccessible> browser_accessibility_root_; |
| 263 | 263 |
| 264 // The time at which this view started displaying white pixels as a result of | 264 // The time at which this view started displaying white pixels as a result of |
| 265 // not having anything to paint (empty backing store from renderer). This | 265 // not having anything to paint (empty backing store from renderer). This |
| 266 // value returns true for is_null() if we are not recording whiteout times. | 266 // value returns true for is_null() if we are not recording whiteout times. |
| 267 base::TimeTicks whiteout_start_time_; | 267 base::TimeTicks whiteout_start_time_; |
| 268 | 268 |
| 269 // Whether the window should get focus when shown. Default is true. | 269 // Whether the window can be activated. Autocomplete popup windows for example |
| 270 bool focus_on_show_; | 270 // cannot be activated. Default is true. |
| 271 bool activatable_; |
| 271 | 272 |
| 272 // Whether the renderer is made accessible. | 273 // Whether the renderer is made accessible. |
| 273 // TODO(jcampan): http://b/issue?id=1432077 This is a temporary work-around | 274 // TODO(jcampan): http://b/issue?id=1432077 This is a temporary work-around |
| 274 // until that bug is fixed. | 275 // until that bug is fixed. |
| 275 bool renderer_accessible_; | 276 bool renderer_accessible_; |
| 276 | 277 |
| 277 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); | 278 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); |
| 278 }; | 279 }; |
| 279 | 280 |
| 280 #endif // #ifndef CHROME_BROWSER_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 281 #endif // #ifndef CHROME_BROWSER_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
| 281 | 282 |
| OLD | NEW |