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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 uint32_t max_bitmap_size, | 326 uint32_t max_bitmap_size, |
327 const ImageDownloadCallback& callback) override; | 327 const ImageDownloadCallback& callback) override; |
328 bool IsSubframe() const override; | 328 bool IsSubframe() const override; |
329 void Find(int request_id, | 329 void Find(int request_id, |
330 const base::string16& search_text, | 330 const base::string16& search_text, |
331 const blink::WebFindOptions& options) override; | 331 const blink::WebFindOptions& options) override; |
332 void StopFinding(StopFindAction action) override; | 332 void StopFinding(StopFindAction action) override; |
333 void InsertCSS(const std::string& css) override; | 333 void InsertCSS(const std::string& css) override; |
334 bool WasRecentlyAudible() override; | 334 bool WasRecentlyAudible() override; |
335 void GetManifest(const GetManifestCallback&) override; | 335 void GetManifest(const GetManifestCallback&) override; |
| 336 void ExitFullscreen() override; |
336 #if defined(OS_ANDROID) | 337 #if defined(OS_ANDROID) |
337 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() | 338 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() |
338 override; | 339 override; |
339 virtual WebContentsAndroid* GetWebContentsAndroid(); | 340 virtual WebContentsAndroid* GetWebContentsAndroid(); |
340 #elif defined(OS_MACOSX) | 341 #elif defined(OS_MACOSX) |
341 void SetAllowOtherViews(bool allow) override; | 342 void SetAllowOtherViews(bool allow) override; |
342 bool GetAllowOtherViews() override; | 343 bool GetAllowOtherViews() override; |
343 #endif | 344 #endif |
344 | 345 |
345 // Implementation of PageNavigator. | 346 // Implementation of PageNavigator. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 void UpdateEncoding(RenderFrameHost* render_frame_host, | 385 void UpdateEncoding(RenderFrameHost* render_frame_host, |
385 const std::string& encoding) override; | 386 const std::string& encoding) override; |
386 WebContents* GetAsWebContents() override; | 387 WebContents* GetAsWebContents() override; |
387 bool IsNeverVisible() override; | 388 bool IsNeverVisible() override; |
388 AccessibilityMode GetAccessibilityMode() const override; | 389 AccessibilityMode GetAccessibilityMode() const override; |
389 void AccessibilityEventReceived( | 390 void AccessibilityEventReceived( |
390 const std::vector<AXEventNotificationDetails>& details) override; | 391 const std::vector<AXEventNotificationDetails>& details) override; |
391 RenderFrameHost* GetGuestByInstanceID( | 392 RenderFrameHost* GetGuestByInstanceID( |
392 int browser_plugin_instance_id) override; | 393 int browser_plugin_instance_id) override; |
393 GeolocationServiceContext* GetGeolocationServiceContext() override; | 394 GeolocationServiceContext* GetGeolocationServiceContext() override; |
| 395 void EnterFullscreenMode(const GURL& origin) override; |
| 396 void ExitFullscreenMode() override; |
394 #if defined(OS_WIN) | 397 #if defined(OS_WIN) |
395 gfx::NativeViewAccessible GetParentNativeViewAccessible() override; | 398 gfx::NativeViewAccessible GetParentNativeViewAccessible() override; |
396 #endif | 399 #endif |
397 | 400 |
398 // RenderViewHostDelegate ---------------------------------------------------- | 401 // RenderViewHostDelegate ---------------------------------------------------- |
399 RenderViewHostDelegateView* GetDelegateView() override; | 402 RenderViewHostDelegateView* GetDelegateView() override; |
400 bool OnMessageReceived(RenderViewHost* render_view_host, | 403 bool OnMessageReceived(RenderViewHost* render_view_host, |
401 const IPC::Message& message) override; | 404 const IPC::Message& message) override; |
402 // RenderFrameHostDelegate has the same method, so list it there because this | 405 // RenderFrameHostDelegate has the same method, so list it there because this |
403 // interface is going away. | 406 // interface is going away. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 void Activate() override; | 442 void Activate() override; |
440 void Deactivate() override; | 443 void Deactivate() override; |
441 void LostCapture() override; | 444 void LostCapture() override; |
442 void HandleMouseDown() override; | 445 void HandleMouseDown() override; |
443 void HandleMouseUp() override; | 446 void HandleMouseUp() override; |
444 void HandlePointerActivate() override; | 447 void HandlePointerActivate() override; |
445 void HandleGestureBegin() override; | 448 void HandleGestureBegin() override; |
446 void HandleGestureEnd() override; | 449 void HandleGestureEnd() override; |
447 void RunFileChooser(RenderViewHost* render_view_host, | 450 void RunFileChooser(RenderViewHost* render_view_host, |
448 const FileChooserParams& params) override; | 451 const FileChooserParams& params) override; |
449 void ToggleFullscreenMode(bool enter_fullscreen) override; | |
450 bool IsFullscreenForCurrentTab() const override; | 452 bool IsFullscreenForCurrentTab() const override; |
451 void UpdatePreferredSize(const gfx::Size& pref_size) override; | 453 void UpdatePreferredSize(const gfx::Size& pref_size) override; |
452 void ResizeDueToAutoResize(const gfx::Size& new_size) override; | 454 void ResizeDueToAutoResize(const gfx::Size& new_size) override; |
453 void RequestToLockMouse(bool user_gesture, | 455 void RequestToLockMouse(bool user_gesture, |
454 bool last_unlocked_by_target) override; | 456 bool last_unlocked_by_target) override; |
455 void LostMouseLock() override; | 457 void LostMouseLock() override; |
456 void CreateNewWindow( | 458 void CreateNewWindow( |
457 int render_process_id, | 459 int render_process_id, |
458 int route_id, | 460 int route_id, |
459 int main_frame_route_id, | 461 int main_frame_route_id, |
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1258 // Adds/removes a callback called on creation of each new WebContents. | 1260 // Adds/removes a callback called on creation of each new WebContents. |
1259 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1261 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1260 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1262 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1261 | 1263 |
1262 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1264 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1263 }; | 1265 }; |
1264 | 1266 |
1265 } // namespace content | 1267 } // namespace content |
1266 | 1268 |
1267 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1269 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |