OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 5 #ifndef CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 virtual void SetPopupType(blink::WebPopupType popup_type) = 0; | 309 virtual void SetPopupType(blink::WebPopupType popup_type) = 0; |
310 virtual blink::WebPopupType GetPopupType() = 0; | 310 virtual blink::WebPopupType GetPopupType() = 0; |
311 | 311 |
312 // Get the BrowserAccessibilityManager if it exists, may return NULL. | 312 // Get the BrowserAccessibilityManager if it exists, may return NULL. |
313 virtual BrowserAccessibilityManager* | 313 virtual BrowserAccessibilityManager* |
314 GetBrowserAccessibilityManager() const = 0; | 314 GetBrowserAccessibilityManager() const = 0; |
315 // Create a BrowserAccessibilityManager for this view if it's possible to | 315 // Create a BrowserAccessibilityManager for this view if it's possible to |
316 // create one and if one doesn't exist already. Some ports may not create | 316 // create one and if one doesn't exist already. Some ports may not create |
317 // one depending on the current state. | 317 // one depending on the current state. |
318 virtual void CreateBrowserAccessibilityManagerIfNeeded() = 0; | 318 virtual void CreateBrowserAccessibilityManagerIfNeeded() = 0; |
319 | 319 virtual void SetBrowserAccessibilityManager( |
| 320 BrowserAccessibilityManager* manager) = 0; |
| 321 virtual void OnAccessibilitySetFocus(int acc_obj_id) = 0; |
| 322 virtual void AccessibilityShowMenu(int acc_obj_id) = 0; |
| 323 virtual gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds) = 0; |
320 // Return a value that is incremented each time the renderer swaps a new frame | 324 // Return a value that is incremented each time the renderer swaps a new frame |
321 // to the view. | 325 // to the view. |
322 virtual uint32 RendererFrameNumber() = 0; | 326 virtual uint32 RendererFrameNumber() = 0; |
323 // Called each time the RenderWidgetHost receives a new frame for display from | 327 // Called each time the RenderWidgetHost receives a new frame for display from |
324 // the renderer. | 328 // the renderer. |
325 virtual void DidReceiveRendererFrame() = 0; | 329 virtual void DidReceiveRendererFrame() = 0; |
326 | 330 |
327 virtual SkBitmap::Config PreferredReadbackFormat() = 0; | 331 virtual SkBitmap::Config PreferredReadbackFormat() = 0; |
328 | 332 |
329 #if defined(OS_MACOSX) | 333 #if defined(OS_MACOSX) |
(...skipping 16 matching lines...) Expand all Loading... |
346 | 350 |
347 // Returns an HWND that's given as the parent window for windowless Flash to | 351 // Returns an HWND that's given as the parent window for windowless Flash to |
348 // workaround crbug.com/301548. | 352 // workaround crbug.com/301548. |
349 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0; | 353 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0; |
350 #endif | 354 #endif |
351 }; | 355 }; |
352 | 356 |
353 } // namespace content | 357 } // namespace content |
354 | 358 |
355 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 359 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
OLD | NEW |