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_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 uint32_t max_bitmap_size, | 322 uint32_t max_bitmap_size, |
323 const ImageDownloadCallback& callback) override; | 323 const ImageDownloadCallback& callback) override; |
324 bool IsSubframe() const override; | 324 bool IsSubframe() const override; |
325 void Find(int request_id, | 325 void Find(int request_id, |
326 const base::string16& search_text, | 326 const base::string16& search_text, |
327 const blink::WebFindOptions& options) override; | 327 const blink::WebFindOptions& options) override; |
328 void StopFinding(StopFindAction action) override; | 328 void StopFinding(StopFindAction action) override; |
329 void InsertCSS(const std::string& css) override; | 329 void InsertCSS(const std::string& css) override; |
330 bool WasRecentlyAudible() override; | 330 bool WasRecentlyAudible() override; |
331 void GetManifest(const GetManifestCallback&) override; | 331 void GetManifest(const GetManifestCallback&) override; |
| 332 void ExitFullscreen() override; |
332 #if defined(OS_ANDROID) | 333 #if defined(OS_ANDROID) |
333 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() | 334 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() |
334 override; | 335 override; |
335 virtual WebContentsAndroid* GetWebContentsAndroid(); | 336 virtual WebContentsAndroid* GetWebContentsAndroid(); |
336 #elif defined(OS_MACOSX) | 337 #elif defined(OS_MACOSX) |
337 void SetAllowOtherViews(bool allow) override; | 338 void SetAllowOtherViews(bool allow) override; |
338 bool GetAllowOtherViews() override; | 339 bool GetAllowOtherViews() override; |
339 #endif | 340 #endif |
340 | 341 |
341 // Implementation of PageNavigator. | 342 // Implementation of PageNavigator. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 void UpdateEncoding(RenderFrameHost* render_frame_host, | 381 void UpdateEncoding(RenderFrameHost* render_frame_host, |
381 const std::string& encoding) override; | 382 const std::string& encoding) override; |
382 WebContents* GetAsWebContents() override; | 383 WebContents* GetAsWebContents() override; |
383 bool IsNeverVisible() override; | 384 bool IsNeverVisible() override; |
384 AccessibilityMode GetAccessibilityMode() const override; | 385 AccessibilityMode GetAccessibilityMode() const override; |
385 void AccessibilityEventReceived( | 386 void AccessibilityEventReceived( |
386 const std::vector<AXEventNotificationDetails>& details) override; | 387 const std::vector<AXEventNotificationDetails>& details) override; |
387 RenderFrameHost* GetGuestByInstanceID( | 388 RenderFrameHost* GetGuestByInstanceID( |
388 int browser_plugin_instance_id) override; | 389 int browser_plugin_instance_id) override; |
389 GeolocationServiceContext* GetGeolocationServiceContext() override; | 390 GeolocationServiceContext* GetGeolocationServiceContext() override; |
| 391 void EnterFullscreenMode(const GURL& origin) override; |
| 392 void ExitFullscreenMode() override; |
390 #if defined(OS_WIN) | 393 #if defined(OS_WIN) |
391 gfx::NativeViewAccessible GetParentNativeViewAccessible() override; | 394 gfx::NativeViewAccessible GetParentNativeViewAccessible() override; |
392 #endif | 395 #endif |
393 | 396 |
394 // RenderViewHostDelegate ---------------------------------------------------- | 397 // RenderViewHostDelegate ---------------------------------------------------- |
395 RenderViewHostDelegateView* GetDelegateView() override; | 398 RenderViewHostDelegateView* GetDelegateView() override; |
396 bool OnMessageReceived(RenderViewHost* render_view_host, | 399 bool OnMessageReceived(RenderViewHost* render_view_host, |
397 const IPC::Message& message) override; | 400 const IPC::Message& message) override; |
398 // RenderFrameHostDelegate has the same method, so list it there because this | 401 // RenderFrameHostDelegate has the same method, so list it there because this |
399 // interface is going away. | 402 // interface is going away. |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 void Activate() override; | 437 void Activate() override; |
435 void Deactivate() override; | 438 void Deactivate() override; |
436 void LostCapture() override; | 439 void LostCapture() override; |
437 void HandleMouseDown() override; | 440 void HandleMouseDown() override; |
438 void HandleMouseUp() override; | 441 void HandleMouseUp() override; |
439 void HandlePointerActivate() override; | 442 void HandlePointerActivate() override; |
440 void HandleGestureBegin() override; | 443 void HandleGestureBegin() override; |
441 void HandleGestureEnd() override; | 444 void HandleGestureEnd() override; |
442 void RunFileChooser(RenderViewHost* render_view_host, | 445 void RunFileChooser(RenderViewHost* render_view_host, |
443 const FileChooserParams& params) override; | 446 const FileChooserParams& params) override; |
444 void ToggleFullscreenMode(bool enter_fullscreen) override; | |
445 bool IsFullscreenForCurrentTab() const override; | 447 bool IsFullscreenForCurrentTab() const override; |
446 void UpdatePreferredSize(const gfx::Size& pref_size) override; | 448 void UpdatePreferredSize(const gfx::Size& pref_size) override; |
447 void ResizeDueToAutoResize(const gfx::Size& new_size) override; | 449 void ResizeDueToAutoResize(const gfx::Size& new_size) override; |
448 void RequestToLockMouse(bool user_gesture, | 450 void RequestToLockMouse(bool user_gesture, |
449 bool last_unlocked_by_target) override; | 451 bool last_unlocked_by_target) override; |
450 void LostMouseLock() override; | 452 void LostMouseLock() override; |
451 void CreateNewWindow( | 453 void CreateNewWindow( |
452 int render_process_id, | 454 int render_process_id, |
453 int route_id, | 455 int route_id, |
454 int main_frame_route_id, | 456 int main_frame_route_id, |
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1231 bool virtual_keyboard_requested_; | 1233 bool virtual_keyboard_requested_; |
1232 | 1234 |
1233 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; | 1235 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; |
1234 | 1236 |
1235 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1237 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
1236 }; | 1238 }; |
1237 | 1239 |
1238 } // namespace content | 1240 } // namespace content |
1239 | 1241 |
1240 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1242 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |