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 |
13 #include "base/scoped_comptr_win.h" | 15 #include "base/scoped_comptr_win.h" |
14 #include "base/scoped_ptr.h" | 16 #include "base/scoped_ptr.h" |
15 #include "base/task.h" | 17 #include "base/task.h" |
16 #include "chrome/browser/browser_accessibility_manager.h" | 18 #include "chrome/browser/browser_accessibility_manager.h" |
17 #include "chrome/browser/ime_input.h" | 19 #include "chrome/browser/ime_input.h" |
18 #include "chrome/browser/renderer_host/render_widget_host_view.h" | 20 #include "chrome/browser/renderer_host/render_widget_host_view.h" |
19 #include "chrome/common/notification_registrar.h" | 21 #include "chrome/common/notification_registrar.h" |
20 #include "webkit/glue/webcursor.h" | 22 #include "webkit/glue/webcursor.h" |
21 | 23 |
22 namespace gfx { | 24 namespace gfx { |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 // will be tiled such that it lines up with existing tiles starting from the | 244 // will be tiled such that it lines up with existing tiles starting from the |
243 // origin of |dc|. | 245 // origin of |dc|. |
244 void DrawBackground(const RECT& rect, CPaintDC* dc); | 246 void DrawBackground(const RECT& rect, CPaintDC* dc); |
245 | 247 |
246 // Create an intermediate window between the given HWND and its parent. | 248 // Create an intermediate window between the given HWND and its parent. |
247 HWND ReparentWindow(HWND window); | 249 HWND ReparentWindow(HWND window); |
248 | 250 |
249 // Whether the window should be activated. | 251 // Whether the window should be activated. |
250 bool IsActivatable() const; | 252 bool IsActivatable() const; |
251 | 253 |
| 254 // MSAA IAccessible returned while page contents is loading. |
| 255 ScopedComPtr<IAccessible> loading_accessible_; |
| 256 |
252 // The associated Model. | 257 // The associated Model. |
253 RenderWidgetHost* render_widget_host_; | 258 RenderWidgetHost* render_widget_host_; |
254 | 259 |
255 // If we're doing out-of-process painting, this member will be non-NULL, | 260 // If we're doing out-of-process painting, this member will be non-NULL, |
256 // indicating the gpu view we're using for the painting. | 261 // indicating the gpu view we're using for the painting. |
257 scoped_ptr<GpuViewHost> gpu_view_host_; | 262 scoped_ptr<GpuViewHost> gpu_view_host_; |
258 | 263 |
259 // The cursor for the page. This is passed up from the renderer. | 264 // The cursor for the page. This is passed up from the renderer. |
260 WebCursor current_cursor_; | 265 WebCursor current_cursor_; |
261 | 266 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 | 318 |
314 // Instance of accessibility information for the root of the MSAA | 319 // Instance of accessibility information for the root of the MSAA |
315 // tree representation of the WebKit render tree. | 320 // tree representation of the WebKit render tree. |
316 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; | 321 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; |
317 | 322 |
318 // The time at which this view started displaying white pixels as a result of | 323 // The time at which this view started displaying white pixels as a result of |
319 // not having anything to paint (empty backing store from renderer). This | 324 // not having anything to paint (empty backing store from renderer). This |
320 // value returns true for is_null() if we are not recording whiteout times. | 325 // value returns true for is_null() if we are not recording whiteout times. |
321 base::TimeTicks whiteout_start_time_; | 326 base::TimeTicks whiteout_start_time_; |
322 | 327 |
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 |