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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 void RequestMove(const gfx::Rect& new_bounds) override; | 475 void RequestMove(const gfx::Rect& new_bounds) override; |
476 void DidCancelLoading() override; | 476 void DidCancelLoading() override; |
477 void DocumentAvailableInMainFrame(RenderViewHost* render_view_host) override; | 477 void DocumentAvailableInMainFrame(RenderViewHost* render_view_host) override; |
478 void RouteCloseEvent(RenderViewHost* rvh) override; | 478 void RouteCloseEvent(RenderViewHost* rvh) override; |
479 bool AddMessageToConsole(int32_t level, | 479 bool AddMessageToConsole(int32_t level, |
480 const base::string16& message, | 480 const base::string16& message, |
481 int32_t line_no, | 481 int32_t line_no, |
482 const base::string16& source_id) override; | 482 const base::string16& source_id) override; |
483 RendererPreferences GetRendererPrefs( | 483 RendererPreferences GetRendererPrefs( |
484 BrowserContext* browser_context) const override; | 484 BrowserContext* browser_context) const override; |
485 void OnUserInteraction(const blink::WebInputEvent::Type type) override; | 485 void OnUserInteraction(RenderWidgetHostImpl* render_widget_host, |
| 486 const blink::WebInputEvent::Type type) override; |
486 void OnIgnoredUIEvent() override; | 487 void OnIgnoredUIEvent() override; |
487 void LoadStateChanged(const GURL& url, | 488 void LoadStateChanged(const GURL& url, |
488 const net::LoadStateWithParam& load_state, | 489 const net::LoadStateWithParam& load_state, |
489 uint64_t upload_position, | 490 uint64_t upload_position, |
490 uint64_t upload_size) override; | 491 uint64_t upload_size) override; |
491 void Activate() override; | 492 void Activate() override; |
492 void RunFileChooser(RenderViewHost* render_view_host, | 493 void RunFileChooser(RenderViewHost* render_view_host, |
493 const FileChooserParams& params) override; | 494 const FileChooserParams& params) override; |
494 void UpdatePreferredSize(const gfx::Size& pref_size) override; | 495 void UpdatePreferredSize(const gfx::Size& pref_size) override; |
495 void CreateNewWindow( | 496 void CreateNewWindow( |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 void RenderWidgetGotFocus(RenderWidgetHostImpl* render_widget_host) override; | 576 void RenderWidgetGotFocus(RenderWidgetHostImpl* render_widget_host) override; |
576 void RenderWidgetWasResized(RenderWidgetHostImpl* render_widget_host, | 577 void RenderWidgetWasResized(RenderWidgetHostImpl* render_widget_host, |
577 bool width_changed) override; | 578 bool width_changed) override; |
578 void ResizeDueToAutoResize(RenderWidgetHostImpl* render_widget_host, | 579 void ResizeDueToAutoResize(RenderWidgetHostImpl* render_widget_host, |
579 const gfx::Size& new_size) override; | 580 const gfx::Size& new_size) override; |
580 void ScreenInfoChanged() override; | 581 void ScreenInfoChanged() override; |
581 bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 582 bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
582 bool* is_keyboard_shortcut) override; | 583 bool* is_keyboard_shortcut) override; |
583 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override; | 584 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override; |
584 bool HandleWheelEvent(const blink::WebMouseWheelEvent& event) override; | 585 bool HandleWheelEvent(const blink::WebMouseWheelEvent& event) override; |
585 void OnUserGesture(RenderWidgetHostImpl* render_widget_host) override; | |
586 bool PreHandleGestureEvent(const blink::WebGestureEvent& event) override; | 586 bool PreHandleGestureEvent(const blink::WebGestureEvent& event) override; |
587 void DidSendScreenRects(RenderWidgetHostImpl* rwh) override; | 587 void DidSendScreenRects(RenderWidgetHostImpl* rwh) override; |
588 BrowserAccessibilityManager* GetRootBrowserAccessibilityManager() override; | 588 BrowserAccessibilityManager* GetRootBrowserAccessibilityManager() override; |
589 BrowserAccessibilityManager* GetOrCreateRootBrowserAccessibilityManager() | 589 BrowserAccessibilityManager* GetOrCreateRootBrowserAccessibilityManager() |
590 override; | 590 override; |
591 // The following 4 functions are already listed under WebContents overrides: | 591 // The following 4 functions are already listed under WebContents overrides: |
592 // void Cut() override; | 592 // void Cut() override; |
593 // void Copy() override; | 593 // void Copy() override; |
594 // void Paste() override; | 594 // void Paste() override; |
595 // void SelectAll() override; | 595 // void SelectAll() override; |
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1336 // Adds/removes a callback called on creation of each new WebContents. | 1336 // Adds/removes a callback called on creation of each new WebContents. |
1337 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1337 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1338 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1338 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1339 | 1339 |
1340 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1340 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1341 }; | 1341 }; |
1342 | 1342 |
1343 } // namespace content | 1343 } // namespace content |
1344 | 1344 |
1345 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1345 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |