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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_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> |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 virtual bool IsShowingContextMenu() const OVERRIDE; | 50 virtual bool IsShowingContextMenu() const OVERRIDE; |
51 virtual void SetShowingContextMenu(bool showing_menu) OVERRIDE; | 51 virtual void SetShowingContextMenu(bool showing_menu) OVERRIDE; |
52 virtual BrowserAccessibilityManager* | 52 virtual BrowserAccessibilityManager* |
53 GetBrowserAccessibilityManager() const OVERRIDE; | 53 GetBrowserAccessibilityManager() const OVERRIDE; |
54 virtual bool IsMouseLocked() OVERRIDE; | 54 virtual bool IsMouseLocked() OVERRIDE; |
55 virtual void SetPopupType(WebKit::WebPopupType popup_type) OVERRIDE; | 55 virtual void SetPopupType(WebKit::WebPopupType popup_type) OVERRIDE; |
56 virtual WebKit::WebPopupType GetPopupType() OVERRIDE; | 56 virtual WebKit::WebPopupType GetPopupType() OVERRIDE; |
57 | 57 |
58 void SetBrowserAccessibilityManager(BrowserAccessibilityManager* manager); | 58 void SetBrowserAccessibilityManager(BrowserAccessibilityManager* manager); |
59 | 59 |
60 RenderWidgetHostImpl* GetRenderWidgetHostImpl(); | |
61 | |
62 protected: | 60 protected: |
63 // Interface class only, do not construct. | 61 // Interface class only, do not construct. |
64 RenderWidgetHostViewBase(); | 62 RenderWidgetHostViewBase(); |
65 | 63 |
66 // Whether this view is a popup and what kind of popup it is (select, | 64 // Whether this view is a popup and what kind of popup it is (select, |
67 // autofill...). | 65 // autofill...). |
68 WebKit::WebPopupType popup_type_; | 66 WebKit::WebPopupType popup_type_; |
69 | 67 |
70 // A custom background to paint behind the web content. This will be tiled | 68 // A custom background to paint behind the web content. This will be tiled |
71 // horizontally. Can be null, in which case we fall back to painting white. | 69 // horizontally. Can be null, in which case we fall back to painting white. |
(...skipping 22 matching lines...) Expand all Loading... |
94 private: | 92 private: |
95 // Manager of the tree representation of the WebKit render tree. | 93 // Manager of the tree representation of the WebKit render tree. |
96 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; | 94 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; |
97 | 95 |
98 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 96 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
99 }; | 97 }; |
100 | 98 |
101 } // namespace content | 99 } // namespace content |
102 | 100 |
103 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 101 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |