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 <functional> | 10 #include <functional> |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 void DidGetResourceResponseStart( | 209 void DidGetResourceResponseStart( |
210 const ResourceRequestDetails& details); | 210 const ResourceRequestDetails& details); |
211 | 211 |
212 // A redirect was received while requesting a resource. | 212 // A redirect was received while requesting a resource. |
213 void DidGetRedirectForResourceRequest( | 213 void DidGetRedirectForResourceRequest( |
214 const ResourceRedirectDetails& details); | 214 const ResourceRedirectDetails& details); |
215 | 215 |
216 // Notify observers that the web contents has been focused. | 216 // Notify observers that the web contents has been focused. |
217 void NotifyWebContentsFocused(); | 217 void NotifyWebContentsFocused(); |
218 | 218 |
| 219 // Notify observers that the web contents has lost focus. |
| 220 void NotifyWebContentsLostFocus(); |
| 221 |
219 WebContentsView* GetView() const; | 222 WebContentsView* GetView() const; |
220 | 223 |
221 void OnScreenOrientationChange(); | 224 void OnScreenOrientationChange(); |
222 | 225 |
223 ScreenOrientationProvider* GetScreenOrientationProviderForTesting() const { | 226 ScreenOrientationProvider* GetScreenOrientationProviderForTesting() const { |
224 return screen_orientation_provider_.get(); | 227 return screen_orientation_provider_.get(); |
225 } | 228 } |
226 | 229 |
227 bool should_normally_be_visible() { return should_normally_be_visible_; } | 230 bool should_normally_be_visible() { return should_normally_be_visible_; } |
228 | 231 |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
647 std::vector<std::unique_ptr<NavigationThrottle>> CreateThrottlesForNavigation( | 650 std::vector<std::unique_ptr<NavigationThrottle>> CreateThrottlesForNavigation( |
648 NavigationHandle* navigation_handle) override; | 651 NavigationHandle* navigation_handle) override; |
649 std::unique_ptr<NavigationUIData> GetNavigationUIData( | 652 std::unique_ptr<NavigationUIData> GetNavigationUIData( |
650 NavigationHandle* navigation_handle) override; | 653 NavigationHandle* navigation_handle) override; |
651 | 654 |
652 // RenderWidgetHostDelegate -------------------------------------------------- | 655 // RenderWidgetHostDelegate -------------------------------------------------- |
653 | 656 |
654 void RenderWidgetCreated(RenderWidgetHostImpl* render_widget_host) override; | 657 void RenderWidgetCreated(RenderWidgetHostImpl* render_widget_host) override; |
655 void RenderWidgetDeleted(RenderWidgetHostImpl* render_widget_host) override; | 658 void RenderWidgetDeleted(RenderWidgetHostImpl* render_widget_host) override; |
656 void RenderWidgetGotFocus(RenderWidgetHostImpl* render_widget_host) override; | 659 void RenderWidgetGotFocus(RenderWidgetHostImpl* render_widget_host) override; |
| 660 void RenderWidgetLostFocus(RenderWidgetHostImpl* render_widget_host) override; |
657 void RenderWidgetWasResized(RenderWidgetHostImpl* render_widget_host, | 661 void RenderWidgetWasResized(RenderWidgetHostImpl* render_widget_host, |
658 bool width_changed) override; | 662 bool width_changed) override; |
659 void ResizeDueToAutoResize(RenderWidgetHostImpl* render_widget_host, | 663 void ResizeDueToAutoResize(RenderWidgetHostImpl* render_widget_host, |
660 const gfx::Size& new_size) override; | 664 const gfx::Size& new_size) override; |
661 void ScreenInfoChanged() override; | 665 void ScreenInfoChanged() override; |
662 void UpdateDeviceScaleFactor(double device_scale_factor) override; | 666 void UpdateDeviceScaleFactor(double device_scale_factor) override; |
663 void GetScreenInfo(ScreenInfo* screen_info) override; | 667 void GetScreenInfo(ScreenInfo* screen_info) override; |
664 KeyboardEventProcessingResult PreHandleKeyboardEvent( | 668 KeyboardEventProcessingResult PreHandleKeyboardEvent( |
665 const NativeWebKeyboardEvent& event) override; | 669 const NativeWebKeyboardEvent& event) override; |
666 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override; | 670 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override; |
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1606 // Adds/removes a callback called on creation of each new WebContents. | 1610 // Adds/removes a callback called on creation of each new WebContents. |
1607 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1611 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1608 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1612 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1609 | 1613 |
1610 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); | 1614 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); |
1611 }; | 1615 }; |
1612 | 1616 |
1613 } // namespace content | 1617 } // namespace content |
1614 | 1618 |
1615 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1619 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |