OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_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> |
11 #include <atlmisc.h> | 11 #include <atlmisc.h> |
12 | 12 |
13 #include <vector> | |
14 | |
15 #include "base/scoped_comptr_win.h" | 13 #include "base/scoped_comptr_win.h" |
16 #include "base/scoped_ptr.h" | 14 #include "base/scoped_ptr.h" |
17 #include "base/task.h" | 15 #include "base/task.h" |
18 #include "chrome/browser/browser_accessibility_manager.h" | 16 #include "chrome/browser/browser_accessibility_manager.h" |
19 #include "chrome/browser/ime_input.h" | 17 #include "chrome/browser/ime_input.h" |
20 #include "chrome/browser/renderer_host/render_widget_host_view.h" | 18 #include "chrome/browser/renderer_host/render_widget_host_view.h" |
21 #include "chrome/common/notification_registrar.h" | 19 #include "chrome/common/notification_registrar.h" |
22 #include "webkit/glue/webcursor.h" | 20 #include "webkit/glue/webcursor.h" |
23 | 21 |
24 namespace gfx { | 22 namespace gfx { |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 // will be tiled such that it lines up with existing tiles starting from the | 242 // will be tiled such that it lines up with existing tiles starting from the |
245 // origin of |dc|. | 243 // origin of |dc|. |
246 void DrawBackground(const RECT& rect, CPaintDC* dc); | 244 void DrawBackground(const RECT& rect, CPaintDC* dc); |
247 | 245 |
248 // Create an intermediate window between the given HWND and its parent. | 246 // Create an intermediate window between the given HWND and its parent. |
249 HWND ReparentWindow(HWND window); | 247 HWND ReparentWindow(HWND window); |
250 | 248 |
251 // Whether the window should be activated. | 249 // Whether the window should be activated. |
252 bool IsActivatable() const; | 250 bool IsActivatable() const; |
253 | 251 |
254 // MSAA IAccessible returned while page contents is loading. | |
255 ScopedComPtr<IAccessible> loading_accessible_; | |
256 | |
257 // The associated Model. | 252 // The associated Model. |
258 RenderWidgetHost* render_widget_host_; | 253 RenderWidgetHost* render_widget_host_; |
259 | 254 |
260 // If we're doing out-of-process painting, this member will be non-NULL, | 255 // If we're doing out-of-process painting, this member will be non-NULL, |
261 // indicating the gpu view we're using for the painting. | 256 // indicating the gpu view we're using for the painting. |
262 scoped_ptr<GpuViewHost> gpu_view_host_; | 257 scoped_ptr<GpuViewHost> gpu_view_host_; |
263 | 258 |
264 // The cursor for the page. This is passed up from the renderer. | 259 // The cursor for the page. This is passed up from the renderer. |
265 WebCursor current_cursor_; | 260 WebCursor current_cursor_; |
266 | 261 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 | 313 |
319 // Instance of accessibility information for the root of the MSAA | 314 // Instance of accessibility information for the root of the MSAA |
320 // tree representation of the WebKit render tree. | 315 // tree representation of the WebKit render tree. |
321 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; | 316 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; |
322 | 317 |
323 // The time at which this view started displaying white pixels as a result of | 318 // The time at which this view started displaying white pixels as a result of |
324 // not having anything to paint (empty backing store from renderer). This | 319 // not having anything to paint (empty backing store from renderer). This |
325 // value returns true for is_null() if we are not recording whiteout times. | 320 // value returns true for is_null() if we are not recording whiteout times. |
326 base::TimeTicks whiteout_start_time_; | 321 base::TimeTicks whiteout_start_time_; |
327 | 322 |
| 323 // Whether the renderer is made accessible. |
| 324 // TODO(jcampan): http://b/issue?id=1432077 This is a temporary work-around |
| 325 // until that bug is fixed. |
| 326 bool renderer_accessible_; |
| 327 |
328 // The time it took after this view was selected for it to be fully painted. | 328 // The time it took after this view was selected for it to be fully painted. |
329 base::TimeTicks tab_switch_paint_time_; | 329 base::TimeTicks tab_switch_paint_time_; |
330 | 330 |
331 // True if we are showing a constrained window. We will grey out the view | 331 // True if we are showing a constrained window. We will grey out the view |
332 // whenever we paint. | 332 // whenever we paint. |
333 bool visually_deemphasized_; | 333 bool visually_deemphasized_; |
334 | 334 |
335 // Registrar so we can listen to RENDERER_PROCESS_TERMINATED events. | 335 // Registrar so we can listen to RENDERER_PROCESS_TERMINATED events. |
336 NotificationRegistrar registrar_; | 336 NotificationRegistrar registrar_; |
337 | 337 |
338 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); | 338 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); |
339 }; | 339 }; |
340 | 340 |
341 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 341 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
OLD | NEW |