Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_win.h

Issue 8917020: Adds a BrowserAccessibilityManager accessor to RenderWidgetHostView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove include of browser_accessibility_manager.h from header. Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_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>
11 #include <atlcrack.h> 11 #include <atlcrack.h>
12 #include <atlmisc.h> 12 #include <atlmisc.h>
13 13
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/compiler_specific.h" 16 #include "base/compiler_specific.h"
17 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
18 #include "base/memory/scoped_vector.h" 18 #include "base/memory/scoped_vector.h"
19 #include "base/memory/weak_ptr.h" 19 #include "base/memory/weak_ptr.h"
20 #include "base/time.h" 20 #include "base/time.h"
21 #include "base/win/scoped_comptr.h" 21 #include "base/win/scoped_comptr.h"
22 #include "content/browser/accessibility/browser_accessibility_manager.h"
23 #include "content/browser/renderer_host/render_widget_host_view.h" 22 #include "content/browser/renderer_host/render_widget_host_view.h"
24 #include "content/common/content_export.h" 23 #include "content/common/content_export.h"
25 #include "content/public/browser/notification_observer.h" 24 #include "content/public/browser/notification_observer.h"
26 #include "content/public/browser/notification_registrar.h" 25 #include "content/public/browser/notification_registrar.h"
27 #include "ui/base/win/ime_input.h" 26 #include "ui/base/win/ime_input.h"
28 #include "ui/gfx/native_widget_types.h" 27 #include "ui/gfx/native_widget_types.h"
29 #include "ui/gfx/point.h" 28 #include "ui/gfx/point.h"
30 #include "ui/gfx/surface/accelerated_surface_win.h" 29 #include "ui/gfx/surface/accelerated_surface_win.h"
31 #include "webkit/glue/webcursor.h" 30 #include "webkit/glue/webcursor.h"
32 31
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 bool tooltip_showing_; 446 bool tooltip_showing_;
448 447
449 // Factory used to safely scope delayed calls to ShutdownHost(). 448 // Factory used to safely scope delayed calls to ShutdownHost().
450 base::WeakPtrFactory<RenderWidgetHostViewWin> weak_factory_; 449 base::WeakPtrFactory<RenderWidgetHostViewWin> weak_factory_;
451 450
452 // Our parent HWND. We keep a reference to it as we SetParent(NULL) when 451 // Our parent HWND. We keep a reference to it as we SetParent(NULL) when
453 // hidden to prevent getting messages (Paint, Resize...), and we reattach 452 // hidden to prevent getting messages (Paint, Resize...), and we reattach
454 // when shown again. 453 // when shown again.
455 HWND parent_hwnd_; 454 HWND parent_hwnd_;
456 455
457 // Instance of accessibility information for the root of the MSAA
458 // tree representation of the WebKit render tree.
459 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_;
460
461 // The time at which this view started displaying white pixels as a result of 456 // The time at which this view started displaying white pixels as a result of
462 // not having anything to paint (empty backing store from renderer). This 457 // not having anything to paint (empty backing store from renderer). This
463 // value returns true for is_null() if we are not recording whiteout times. 458 // value returns true for is_null() if we are not recording whiteout times.
464 base::TimeTicks whiteout_start_time_; 459 base::TimeTicks whiteout_start_time_;
465 460
466 // The time it took after this view was selected for it to be fully painted. 461 // The time it took after this view was selected for it to be fully painted.
467 base::TimeTicks tab_switch_paint_time_; 462 base::TimeTicks tab_switch_paint_time_;
468 463
469 // Registrar so we can listen to RENDERER_PROCESS_TERMINATED events. 464 // Registrar so we can listen to RENDERER_PROCESS_TERMINATED events.
470 content::NotificationRegistrar registrar_; 465 content::NotificationRegistrar registrar_;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 // duplicate lbutton down messages to the renderer. 506 // duplicate lbutton down messages to the renderer.
512 bool ignore_next_lbutton_message_at_same_location; 507 bool ignore_next_lbutton_message_at_same_location;
513 // The location of the last WM_POINTERDOWN message. We ignore the subsequent 508 // The location of the last WM_POINTERDOWN message. We ignore the subsequent
514 // lbutton down only if the locations match. 509 // lbutton down only if the locations match.
515 LPARAM last_pointer_down_location_; 510 LPARAM last_pointer_down_location_;
516 511
517 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); 512 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin);
518 }; 513 };
519 514
520 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ 515 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698