| 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) { |
| 69 focus_on_show_ = focus; |
| 70 } |
| 71 bool focus_on_show() const { return focus_on_show_; } |
| 72 |
| 68 void set_parent_hwnd(HWND parent) { parent_hwnd_ = parent; } | 73 void set_parent_hwnd(HWND parent) { parent_hwnd_ = parent; } |
| 69 | 74 |
| 70 DECLARE_WND_CLASS_EX(kRenderWidgetHostHWNDClass, CS_DBLCLKS, 0); | 75 DECLARE_WND_CLASS_EX(kRenderWidgetHostHWNDClass, CS_DBLCLKS, 0); |
| 71 | 76 |
| 72 BEGIN_MSG_MAP(RenderWidgetHostHWND) | 77 BEGIN_MSG_MAP(RenderWidgetHostHWND) |
| 73 MSG_WM_CREATE(OnCreate) | 78 MSG_WM_CREATE(OnCreate) |
| 74 MSG_WM_ACTIVATE(OnActivate) | 79 MSG_WM_ACTIVATE(OnActivate) |
| 75 MSG_WM_DESTROY(OnDestroy) | 80 MSG_WM_DESTROY(OnDestroy) |
| 76 MSG_WM_PAINT(OnPaint) | 81 MSG_WM_PAINT(OnPaint) |
| 77 MSG_WM_NCPAINT(OnNCPaint) | 82 MSG_WM_NCPAINT(OnNCPaint) |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 | 257 |
| 253 // Instance of accessibility information for the root of the MSAA | 258 // Instance of accessibility information for the root of the MSAA |
| 254 // tree representation of the WebKit render tree. | 259 // tree representation of the WebKit render tree. |
| 255 CComPtr<IAccessible> browser_accessibility_root_; | 260 CComPtr<IAccessible> browser_accessibility_root_; |
| 256 | 261 |
| 257 // The time at which this view started displaying white pixels as a result of | 262 // The time at which this view started displaying white pixels as a result of |
| 258 // not having anything to paint (empty backing store from renderer). This | 263 // not having anything to paint (empty backing store from renderer). This |
| 259 // value returns true for is_null() if we are not recording whiteout times. | 264 // value returns true for is_null() if we are not recording whiteout times. |
| 260 base::TimeTicks whiteout_start_time_; | 265 base::TimeTicks whiteout_start_time_; |
| 261 | 266 |
| 267 // Whether the window should get focus when shown. Default is true. |
| 268 bool focus_on_show_; |
| 269 |
| 262 // Whether the renderer is made accessible. | 270 // Whether the renderer is made accessible. |
| 263 // TODO(jcampan): http://b/issue?id=1432077 This is a temporary work-around | 271 // TODO(jcampan): http://b/issue?id=1432077 This is a temporary work-around |
| 264 // until that bug is fixed. | 272 // until that bug is fixed. |
| 265 bool renderer_accessible_; | 273 bool renderer_accessible_; |
| 266 | 274 |
| 267 DISALLOW_EVIL_CONSTRUCTORS(RenderWidgetHostViewWin); | 275 DISALLOW_EVIL_CONSTRUCTORS(RenderWidgetHostViewWin); |
| 268 }; | 276 }; |
| 269 | 277 |
| 270 #endif // #ifndef CHROME_BROWSER_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 278 #endif // #ifndef CHROME_BROWSER_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
| 271 | 279 |
| OLD | NEW |