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_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 | 432 |
433 // RenderView implementation ------------------------------------------------- | 433 // RenderView implementation ------------------------------------------------- |
434 | 434 |
435 bool Send(IPC::Message* message) override; | 435 bool Send(IPC::Message* message) override; |
436 RenderFrameImpl* GetMainRenderFrame() override; | 436 RenderFrameImpl* GetMainRenderFrame() override; |
437 int GetRoutingID() const override; | 437 int GetRoutingID() const override; |
438 gfx::Size GetSize() const override; | 438 gfx::Size GetSize() const override; |
439 WebPreferences& GetWebkitPreferences() override; | 439 WebPreferences& GetWebkitPreferences() override; |
440 void SetWebkitPreferences(const WebPreferences& preferences) override; | 440 void SetWebkitPreferences(const WebPreferences& preferences) override; |
441 blink::WebView* GetWebView() override; | 441 blink::WebView* GetWebView() override; |
442 blink::WebElement GetFocusedElement() const override; | |
443 bool IsEditableNode(const blink::WebNode& node) const override; | 442 bool IsEditableNode(const blink::WebNode& node) const override; |
444 bool NodeContainsPoint(const blink::WebNode& node, | |
445 const gfx::Point& point) const override; | |
446 bool ShouldDisplayScrollbars(int width, int height) const override; | 443 bool ShouldDisplayScrollbars(int width, int height) const override; |
447 int GetEnabledBindings() const override; | 444 int GetEnabledBindings() const override; |
448 bool GetContentStateImmediately() const override; | 445 bool GetContentStateImmediately() const override; |
449 blink::WebPageVisibilityState GetVisibilityState() const override; | 446 blink::WebPageVisibilityState GetVisibilityState() const override; |
450 void DidStartLoading() override; | 447 void DidStartLoading() override; |
451 void DidStopLoading() override; | 448 void DidStopLoading() override; |
452 void Repaint(const gfx::Size& size) override; | 449 void Repaint(const gfx::Size& size) override; |
453 void SetEditCommandForNextKeyEvent(const std::string& name, | 450 void SetEditCommandForNextKeyEvent(const std::string& name, |
454 const std::string& value) override; | 451 const std::string& value) override; |
455 void ClearEditCommands() override; | 452 void ClearEditCommands() override; |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 const gfx::Rect& view_frame); | 707 const gfx::Rect& view_frame); |
711 #endif | 708 #endif |
712 | 709 |
713 // Adding a new message handler? Please add it in alphabetical order above | 710 // Adding a new message handler? Please add it in alphabetical order above |
714 // and put it in the same position in the .cc file. | 711 // and put it in the same position in the .cc file. |
715 | 712 |
716 // Misc private functions ---------------------------------------------------- | 713 // Misc private functions ---------------------------------------------------- |
717 // Check whether the preferred size has changed. | 714 // Check whether the preferred size has changed. |
718 void CheckPreferredSize(); | 715 void CheckPreferredSize(); |
719 | 716 |
| 717 // Gets the currently focused element, if any. |
| 718 blink::WebElement GetFocusedElement() const; |
| 719 |
720 // Called to get the WebPlugin to handle find requests in the document. | 720 // Called to get the WebPlugin to handle find requests in the document. |
721 // Returns NULL if there is no such WebPlugin. | 721 // Returns NULL if there is no such WebPlugin. |
722 blink::WebPlugin* GetWebPluginForFind(); | 722 blink::WebPlugin* GetWebPluginForFind(); |
723 | 723 |
724 | |
725 // If we initiated a navigation, this function will populate |document_state| | 724 // If we initiated a navigation, this function will populate |document_state| |
726 // with the navigation information saved in OnNavigate(). | 725 // with the navigation information saved in OnNavigate(). |
727 void PopulateDocumentStateFromPending(DocumentState* document_state); | 726 void PopulateDocumentStateFromPending(DocumentState* document_state); |
728 | 727 |
729 // Returns a new NavigationState populated with the navigation information | 728 // Returns a new NavigationState populated with the navigation information |
730 // saved in OnNavigate(). | 729 // saved in OnNavigate(). |
731 NavigationState* CreateNavigationStateFromPending(); | 730 NavigationState* CreateNavigationStateFromPending(); |
732 | 731 |
733 #if defined(OS_ANDROID) | 732 #if defined(OS_ANDROID) |
734 // Launch an Android content intent with the given URL. | 733 // Launch an Android content intent with the given URL. |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1059 // use the Observer interface to filter IPC messages and receive frame change | 1058 // use the Observer interface to filter IPC messages and receive frame change |
1060 // notifications. | 1059 // notifications. |
1061 // --------------------------------------------------------------------------- | 1060 // --------------------------------------------------------------------------- |
1062 | 1061 |
1063 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1062 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1064 }; | 1063 }; |
1065 | 1064 |
1066 } // namespace content | 1065 } // namespace content |
1067 | 1066 |
1068 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1067 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |