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

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

Issue 8917020: Adds a BrowserAccessibilityManager accessor to RenderWidgetHostView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Insert proper includes. 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
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(OS_MACOSX) 9 #if defined(OS_MACOSX)
10 #include <OpenGL/OpenGL.h> 10 #include <OpenGL/OpenGL.h>
11 #endif 11 #endif
12 12
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/memory/scoped_ptr.h"
16 #include "base/process_util.h" 17 #include "base/process_util.h"
17 #include "base/callback_forward.h" 18 #include "base/callback_forward.h"
18 #include "content/common/content_export.h" 19 #include "content/common/content_export.h"
19 #include "third_party/skia/include/core/SkBitmap.h" 20 #include "third_party/skia/include/core/SkBitmap.h"
20 #include "third_party/skia/include/core/SkColor.h" 21 #include "third_party/skia/include/core/SkColor.h"
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
23 #include "ui/base/ime/text_input_type.h" 24 #include "ui/base/ime/text_input_type.h"
24 #include "ui/base/range/range.h" 25 #include "ui/base/range/range.h"
25 #include "ui/gfx/native_widget_types.h" 26 #include "ui/gfx/native_widget_types.h"
26 #include "ui/gfx/rect.h" 27 #include "ui/gfx/rect.h"
27 #include "ui/gfx/surface/transport_dib.h" 28 #include "ui/gfx/surface/transport_dib.h"
28 29
29 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; 30 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params;
30 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; 31 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params;
31 32
32 class BackingStore; 33 class BackingStore;
34 class BrowserAccessibilityManager;
33 class RenderWidgetHost; 35 class RenderWidgetHost;
34 class WebCursor; 36 class WebCursor;
35 struct NativeWebKeyboardEvent; 37 struct NativeWebKeyboardEvent;
36 struct ViewHostMsg_AccessibilityNotification_Params; 38 struct ViewHostMsg_AccessibilityNotification_Params;
37 39
38 namespace content { 40 namespace content {
39 class RenderProcessHost; 41 class RenderProcessHost;
40 } 42 }
41 43
42 namespace gfx { 44 namespace gfx {
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 307
306 // Subclasses should override this method to do what is appropriate to set 308 // Subclasses should override this method to do what is appropriate to set
307 // the custom background for their platform. 309 // the custom background for their platform.
308 CONTENT_EXPORT virtual void SetBackground(const SkBitmap& background); 310 CONTENT_EXPORT virtual void SetBackground(const SkBitmap& background);
309 const SkBitmap& background() const { return background_; } 311 const SkBitmap& background() const { return background_; }
310 312
311 virtual void OnAccessibilityNotifications( 313 virtual void OnAccessibilityNotifications(
312 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params) { 314 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params) {
313 } 315 }
314 316
317 BrowserAccessibilityManager* GetBrowserAccessibilityManager() const;
318 void SetBrowserAccessibilityManager(BrowserAccessibilityManager* manager);
319
315 gfx::Rect reserved_contents_rect() const { 320 gfx::Rect reserved_contents_rect() const {
316 return reserved_rect_; 321 return reserved_rect_;
317 } 322 }
318 void set_reserved_contents_rect(const gfx::Rect& reserved_rect) { 323 void set_reserved_contents_rect(const gfx::Rect& reserved_rect) {
319 reserved_rect_ = reserved_rect; 324 reserved_rect_ = reserved_rect;
320 } 325 }
321 326
322 bool mouse_locked() const { return mouse_locked_; } 327 bool mouse_locked() const { return mouse_locked_; }
323 328
324 protected: 329 protected:
(...skipping 23 matching lines...) Expand all
348 string16 selection_text_; 353 string16 selection_text_;
349 354
350 // The offset of the text stored in |selection_text_| relative to the start of 355 // The offset of the text stored in |selection_text_| relative to the start of
351 // the web page. 356 // the web page.
352 size_t selection_text_offset_; 357 size_t selection_text_offset_;
353 358
354 // The current selection range relative to the start of the web page. 359 // The current selection range relative to the start of the web page.
355 ui::Range selection_range_; 360 ui::Range selection_range_;
356 361
357 private: 362 private:
363 // Manager of the tree representation of the WebKit render tree.
364 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_;
365
358 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); 366 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView);
359 }; 367 };
360 368
361 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 369 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698