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

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

Issue 8917020: Adds a BrowserAccessibilityManager accessor to RenderWidgetHostView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove forward declaration. 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_MAC_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(__OBJC__) 9 #if defined(__OBJC__)
10 10
11 #import <Cocoa/Cocoa.h> 11 #import <Cocoa/Cocoa.h>
12 12
13 #include "base/memory/scoped_nsobject.h" 13 #include "base/memory/scoped_nsobject.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "base/time.h" 16 #include "base/time.h"
17 #include "content/browser/accessibility/browser_accessibility_delegate_mac.h" 17 #include "content/browser/accessibility/browser_accessibility_delegate_mac.h"
18 #include "content/browser/accessibility/browser_accessibility_manager.h"
19 #include "content/browser/renderer_host/accelerated_surface_container_manager_ma c.h" 18 #include "content/browser/renderer_host/accelerated_surface_container_manager_ma c.h"
20 #include "content/browser/renderer_host/render_widget_host_view.h" 19 #include "content/browser/renderer_host/render_widget_host_view.h"
21 #include "content/common/edit_command.h" 20 #include "content/common/edit_command.h"
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h" 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h"
23 #include "ui/base/cocoa/base_view.h" 22 #include "ui/base/cocoa/base_view.h"
24 #include "webkit/glue/webcursor.h" 23 #include "webkit/glue/webcursor.h"
25 24
26 @class AcceleratedPluginView; 25 @class AcceleratedPluginView;
27 class RenderWidgetHostViewMac; 26 class RenderWidgetHostViewMac;
28 @class RenderWidgetHostViewMacDelegate; 27 @class RenderWidgetHostViewMacDelegate;
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 // See comment in RenderWidgetHostView! 216 // See comment in RenderWidgetHostView!
218 virtual gfx::Rect GetViewCocoaBounds() const OVERRIDE; 217 virtual gfx::Rect GetViewCocoaBounds() const OVERRIDE;
219 virtual void SetActive(bool active) OVERRIDE; 218 virtual void SetActive(bool active) OVERRIDE;
220 virtual void SetWindowVisibility(bool visible) OVERRIDE; 219 virtual void SetWindowVisibility(bool visible) OVERRIDE;
221 virtual void WindowFrameChanged() OVERRIDE; 220 virtual void WindowFrameChanged() OVERRIDE;
222 virtual void SetBackground(const SkBitmap& background) OVERRIDE; 221 virtual void SetBackground(const SkBitmap& background) OVERRIDE;
223 222
224 virtual void OnAccessibilityNotifications( 223 virtual void OnAccessibilityNotifications(
225 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params 224 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params
226 ) OVERRIDE; 225 ) OVERRIDE;
227
228 virtual void PluginFocusChanged(bool focused, int plugin_id) OVERRIDE; 226 virtual void PluginFocusChanged(bool focused, int plugin_id) OVERRIDE;
229 virtual void StartPluginIme() OVERRIDE; 227 virtual void StartPluginIme() OVERRIDE;
230 virtual bool PostProcessEventForPluginIme( 228 virtual bool PostProcessEventForPluginIme(
231 const NativeWebKeyboardEvent& event) OVERRIDE; 229 const NativeWebKeyboardEvent& event) OVERRIDE;
232 230
233 // Methods associated with GPU-accelerated plug-in instances and the 231 // Methods associated with GPU-accelerated plug-in instances and the
234 // accelerated compositor. 232 // accelerated compositor.
235 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle( 233 virtual gfx::PluginWindowHandle AllocateFakePluginWindowHandle(
236 bool opaque, bool root) OVERRIDE; 234 bool opaque, bool root) OVERRIDE;
237 virtual void DestroyFakePluginWindowHandle( 235 virtual void DestroyFakePluginWindowHandle(
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 // needs access to them and can't be made a friend. 307 // needs access to them and can't be made a friend.
310 308
311 // The associated Model. Can be NULL if Destroy() is called when 309 // The associated Model. Can be NULL if Destroy() is called when
312 // someone (other than superview) has retained |cocoa_view_|. 310 // someone (other than superview) has retained |cocoa_view_|.
313 RenderWidgetHost* render_widget_host_; 311 RenderWidgetHost* render_widget_host_;
314 312
315 // This is true when we are currently painting and thus should handle extra 313 // This is true when we are currently painting and thus should handle extra
316 // paint requests by expanding the invalid rect rather than actually painting. 314 // paint requests by expanding the invalid rect rather than actually painting.
317 bool about_to_validate_and_paint_; 315 bool about_to_validate_and_paint_;
318 316
319 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_;
320
321 // This is true when we have already scheduled a call to 317 // This is true when we have already scheduled a call to
322 // |-callSetNeedsDisplayInRect:| but it has not been fulfilled yet. Used to 318 // |-callSetNeedsDisplayInRect:| but it has not been fulfilled yet. Used to
323 // prevent us from scheduling multiple calls. 319 // prevent us from scheduling multiple calls.
324 bool call_set_needs_display_in_rect_pending_; 320 bool call_set_needs_display_in_rect_pending_;
325 321
326 // Whether last rendered frame was accelerated. 322 // Whether last rendered frame was accelerated.
327 bool last_frame_was_accelerated_; 323 bool last_frame_was_accelerated_;
328 324
329 // The invalid rect that needs to be painted by callSetNeedsDisplayInRect. 325 // The invalid rect that needs to be painted by callSetNeedsDisplayInRect.
330 // This value is only meaningful when 326 // This value is only meaningful when
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 407
412 class RenderWidgetHostView; 408 class RenderWidgetHostView;
413 class RenderWidgetHost; 409 class RenderWidgetHost;
414 410
415 namespace render_widget_host_view_mac { 411 namespace render_widget_host_view_mac {
416 CONTENT_EXPORT RenderWidgetHostView* CreateRenderWidgetHostView( 412 CONTENT_EXPORT RenderWidgetHostView* CreateRenderWidgetHostView(
417 RenderWidgetHost* widget); 413 RenderWidgetHost* widget);
418 } 414 }
419 415
420 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 416 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698