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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "content/public/browser/render_process_host_observer.h" | 10 #include "content/public/browser/render_process_host_observer.h" |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 void OnChannelConnected(int32 peer_id) override {} | 142 void OnChannelConnected(int32 peer_id) override {} |
143 void OnChannelError() override {} | 143 void OnChannelError() override {} |
144 void OnBadMessageReceived(const IPC::Message& message) override {} | 144 void OnBadMessageReceived(const IPC::Message& message) override {} |
145 | 145 |
146 private: | 146 private: |
147 friend class WebViewUnitTest; | 147 friend class WebViewUnitTest; |
148 | 148 |
149 void AttachWebContents(); | 149 void AttachWebContents(); |
150 void DetachWebContents(); | 150 void DetachWebContents(); |
151 void ReattachForFullscreenChange(bool enter_fullscreen); | 151 void ReattachForFullscreenChange(bool enter_fullscreen); |
152 void NotifyMaybeTextInputClientChanged(); | 152 void NotifyMaybeTextInputClientAndAccessibilityChanged(); |
153 | 153 |
154 // Create a regular or test web contents (based on whether we're running | 154 // Create a regular or test web contents (based on whether we're running |
155 // in a unit test or not). | 155 // in a unit test or not). |
156 content::WebContents* CreateWebContents( | 156 content::WebContents* CreateWebContents( |
157 content::BrowserContext* browser_context); | 157 content::BrowserContext* browser_context); |
158 | 158 |
159 NativeViewHost* const holder_; | 159 NativeViewHost* const holder_; |
160 // Non-NULL if |web_contents()| was created and is owned by this WebView. | 160 // Non-NULL if |web_contents()| was created and is owned by this WebView. |
161 scoped_ptr<content::WebContents> wc_owner_; | 161 scoped_ptr<content::WebContents> wc_owner_; |
162 // The RenderProcessHost to which this RenderProcessHostObserver is added. | 162 // The RenderProcessHost to which this RenderProcessHostObserver is added. |
(...skipping 10 matching lines...) Expand all Loading... |
173 content::BrowserContext* browser_context_; | 173 content::BrowserContext* browser_context_; |
174 bool allow_accelerators_; | 174 bool allow_accelerators_; |
175 gfx::Size preferred_size_; | 175 gfx::Size preferred_size_; |
176 | 176 |
177 DISALLOW_COPY_AND_ASSIGN(WebView); | 177 DISALLOW_COPY_AND_ASSIGN(WebView); |
178 }; | 178 }; |
179 | 179 |
180 } // namespace views | 180 } // namespace views |
181 | 181 |
182 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ | 182 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ |
OLD | NEW |