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 UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ | 5 #ifndef UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ |
6 #define UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ | 6 #define UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 void OnBoundsChanged(const gfx::Rect& previous_bounds) override; | 108 void OnBoundsChanged(const gfx::Rect& previous_bounds) override; |
109 void ViewHierarchyChanged( | 109 void ViewHierarchyChanged( |
110 const ViewHierarchyChangedDetails& details) override; | 110 const ViewHierarchyChangedDetails& details) override; |
111 bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& event) override; | 111 bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& event) override; |
112 bool OnMousePressed(const ui::MouseEvent& event) override; | 112 bool OnMousePressed(const ui::MouseEvent& event) override; |
113 void OnFocus() override; | 113 void OnFocus() override; |
114 void AboutToRequestFocusFromTabTraversal(bool reverse) override; | 114 void AboutToRequestFocusFromTabTraversal(bool reverse) override; |
115 void GetAccessibleState(ui::AXViewState* state) override; | 115 void GetAccessibleState(ui::AXViewState* state) override; |
116 gfx::NativeViewAccessible GetNativeViewAccessible() override; | 116 gfx::NativeViewAccessible GetNativeViewAccessible() override; |
117 gfx::Size GetPreferredSize() const override; | 117 gfx::Size GetPreferredSize() const override; |
| 118 void OnPaintBackground(gfx::Canvas* canvas); |
118 | 119 |
119 // Overridden from content::RenderProcessHostObserver: | 120 // Overridden from content::RenderProcessHostObserver: |
120 void RenderProcessExited(content::RenderProcessHost* host, | 121 void RenderProcessExited(content::RenderProcessHost* host, |
121 base::TerminationStatus status, | 122 base::TerminationStatus status, |
122 int exit_code) override; | 123 int exit_code) override; |
123 void RenderProcessHostDestroyed(content::RenderProcessHost* host) override; | 124 void RenderProcessHostDestroyed(content::RenderProcessHost* host) override; |
124 | 125 |
125 // Overridden from content::WebContentsDelegate: | 126 // Overridden from content::WebContentsDelegate: |
126 bool EmbedsFullscreenWidget() const override; | 127 bool EmbedsFullscreenWidget() const override; |
127 | 128 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 content::BrowserContext* browser_context_; | 175 content::BrowserContext* browser_context_; |
175 bool allow_accelerators_; | 176 bool allow_accelerators_; |
176 gfx::Size preferred_size_; | 177 gfx::Size preferred_size_; |
177 | 178 |
178 DISALLOW_COPY_AND_ASSIGN(WebView); | 179 DISALLOW_COPY_AND_ASSIGN(WebView); |
179 }; | 180 }; |
180 | 181 |
181 } // namespace views | 182 } // namespace views |
182 | 183 |
183 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ | 184 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ |
OLD | NEW |