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

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

Issue 3117036: Update browser cache of accessibility tree on renderer sub-tree changes.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Updating from comments. Created 10 years, 3 months 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) 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_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 6 #define CHROME_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>
14 #include <vector>
15
13 #include "app/surface/transport_dib.h" 16 #include "app/surface/transport_dib.h"
14 #include "gfx/native_widget_types.h" 17 #include "gfx/native_widget_types.h"
15 #include "third_party/skia/include/core/SkBitmap.h" 18 #include "third_party/skia/include/core/SkBitmap.h"
16 #include "third_party/WebKit/WebKit/chromium/public/WebPopupType.h" 19 #include "third_party/WebKit/WebKit/chromium/public/WebPopupType.h"
17 #include "third_party/WebKit/WebKit/chromium/public/WebTextInputType.h" 20 #include "third_party/WebKit/WebKit/chromium/public/WebTextInputType.h"
18 21
19 namespace gfx { 22 namespace gfx {
20 class Rect; 23 class Rect;
21 class Size; 24 class Size;
22 } 25 }
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 const SkBitmap& background() const { return background_; } 245 const SkBitmap& background() const { return background_; }
243 246
244 // Returns true if the native view, |native_view|, is contained within in the 247 // Returns true if the native view, |native_view|, is contained within in the
245 // widget associated with this RenderWidgetHostView. 248 // widget associated with this RenderWidgetHostView.
246 virtual bool ContainsNativeView(gfx::NativeView native_view) const = 0; 249 virtual bool ContainsNativeView(gfx::NativeView native_view) const = 0;
247 250
248 virtual void UpdateAccessibilityTree( 251 virtual void UpdateAccessibilityTree(
249 const webkit_glue::WebAccessibility& tree) { } 252 const webkit_glue::WebAccessibility& tree) { }
250 virtual void OnAccessibilityFocusChange(int acc_obj_id) { } 253 virtual void OnAccessibilityFocusChange(int acc_obj_id) { }
251 virtual void OnAccessibilityObjectStateChange(int acc_obj_id) { } 254 virtual void OnAccessibilityObjectStateChange(int acc_obj_id) { }
255 virtual void OnAccessibilityObjectChildrenChange(
256 const std::vector<webkit_glue::WebAccessibility>& acc_changes) { }
252 257
253 protected: 258 protected:
254 // Interface class only, do not construct. 259 // Interface class only, do not construct.
255 RenderWidgetHostView() : popup_type_(WebKit::WebPopupTypeNone) {} 260 RenderWidgetHostView() : popup_type_(WebKit::WebPopupTypeNone) {}
256 261
257 // Whether this view is a popup and what kind of popup it is (select, 262 // Whether this view is a popup and what kind of popup it is (select,
258 // autofill...). 263 // autofill...).
259 WebKit::WebPopupType popup_type_; 264 WebKit::WebPopupType popup_type_;
260 265
261 // A custom background to paint behind the web content. This will be tiled 266 // A custom background to paint behind the web content. This will be tiled
262 // horizontally. Can be null, in which case we fall back to painting white. 267 // horizontally. Can be null, in which case we fall back to painting white.
263 SkBitmap background_; 268 SkBitmap background_;
264 269
265 private: 270 private:
266 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); 271 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView);
267 }; 272 };
268 273
269 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 274 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host.cc ('k') | chrome/browser/renderer_host/render_widget_host_view_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698