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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 #include "content/public/common/renderer_preferences.h" | 38 #include "content/public/common/renderer_preferences.h" |
39 #include "content/public/common/top_controls_state.h" | 39 #include "content/public/common/top_controls_state.h" |
40 #include "content/public/common/web_preferences.h" | 40 #include "content/public/common/web_preferences.h" |
41 #include "content/public/renderer/render_view.h" | 41 #include "content/public/renderer/render_view.h" |
42 #include "content/renderer/mouse_lock_dispatcher.h" | 42 #include "content/renderer/mouse_lock_dispatcher.h" |
43 #include "content/renderer/render_frame_impl.h" | 43 #include "content/renderer/render_frame_impl.h" |
44 #include "content/renderer/render_widget.h" | 44 #include "content/renderer/render_widget.h" |
45 #include "content/renderer/render_widget_owner_delegate.h" | 45 #include "content/renderer/render_widget_owner_delegate.h" |
46 #include "content/renderer/stats_collection_observer.h" | 46 #include "content/renderer/stats_collection_observer.h" |
47 #include "ipc/ipc_platform_file.h" | 47 #include "ipc/ipc_platform_file.h" |
48 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" | |
49 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" | 48 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" |
50 #include "third_party/WebKit/public/web/WebAXObject.h" | 49 #include "third_party/WebKit/public/web/WebAXObject.h" |
51 #include "third_party/WebKit/public/web/WebConsoleMessage.h" | 50 #include "third_party/WebKit/public/web/WebConsoleMessage.h" |
52 #include "third_party/WebKit/public/web/WebDataSource.h" | 51 #include "third_party/WebKit/public/web/WebDataSource.h" |
53 #include "third_party/WebKit/public/web/WebElement.h" | 52 #include "third_party/WebKit/public/web/WebElement.h" |
54 #include "third_party/WebKit/public/web/WebFrameWidget.h" | 53 #include "third_party/WebKit/public/web/WebFrameWidget.h" |
55 #include "third_party/WebKit/public/web/WebHistoryItem.h" | 54 #include "third_party/WebKit/public/web/WebHistoryItem.h" |
56 #include "third_party/WebKit/public/web/WebIconURL.h" | 55 #include "third_party/WebKit/public/web/WebIconURL.h" |
57 #include "third_party/WebKit/public/web/WebInputEvent.h" | 56 #include "third_party/WebKit/public/web/WebInputEvent.h" |
58 #include "third_party/WebKit/public/web/WebNavigationType.h" | 57 #include "third_party/WebKit/public/web/WebNavigationType.h" |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 int GetRoutingID() const override; | 420 int GetRoutingID() const override; |
422 gfx::Size GetSize() const override; | 421 gfx::Size GetSize() const override; |
423 float GetDeviceScaleFactor() const override; | 422 float GetDeviceScaleFactor() const override; |
424 WebPreferences& GetWebkitPreferences() override; | 423 WebPreferences& GetWebkitPreferences() override; |
425 void SetWebkitPreferences(const WebPreferences& preferences) override; | 424 void SetWebkitPreferences(const WebPreferences& preferences) override; |
426 blink::WebView* GetWebView() override; | 425 blink::WebView* GetWebView() override; |
427 blink::WebFrameWidget* GetWebFrameWidget() override; | 426 blink::WebFrameWidget* GetWebFrameWidget() override; |
428 bool ShouldDisplayScrollbars(int width, int height) const override; | 427 bool ShouldDisplayScrollbars(int width, int height) const override; |
429 int GetEnabledBindings() const override; | 428 int GetEnabledBindings() const override; |
430 bool GetContentStateImmediately() const override; | 429 bool GetContentStateImmediately() const override; |
431 blink::WebPageVisibilityState GetVisibilityState() const override; | |
432 void DidStartLoading() override; | 430 void DidStartLoading() override; |
433 void DidStopLoading() override; | 431 void DidStopLoading() override; |
434 void Repaint(const gfx::Size& size) override; | 432 void Repaint(const gfx::Size& size) override; |
435 void SetEditCommandForNextKeyEvent(const std::string& name, | 433 void SetEditCommandForNextKeyEvent(const std::string& name, |
436 const std::string& value) override; | 434 const std::string& value) override; |
437 void ClearEditCommands() override; | 435 void ClearEditCommands() override; |
438 SSLStatus GetSSLStatusOfFrame(blink::WebFrame* frame) const override; | 436 SSLStatus GetSSLStatusOfFrame(blink::WebFrame* frame) const override; |
439 const std::string& GetAcceptLanguages() const override; | 437 const std::string& GetAcceptLanguages() const override; |
440 #if defined(OS_ANDROID) | 438 #if defined(OS_ANDROID) |
441 void UpdateTopControlsState(TopControlsState constraints, | 439 void UpdateTopControlsState(TopControlsState constraints, |
(...skipping 11 matching lines...) Expand all Loading... |
453 // Please do not add your stuff randomly to the end here. If there is an | 451 // Please do not add your stuff randomly to the end here. If there is an |
454 // appropriate section, add it there. If not, there are some random functions | 452 // appropriate section, add it there. If not, there are some random functions |
455 // nearer to the top you can add it to. | 453 // nearer to the top you can add it to. |
456 | 454 |
457 protected: | 455 protected: |
458 // RenderWidget overrides: | 456 // RenderWidget overrides: |
459 void CloseForFrame() override; | 457 void CloseForFrame() override; |
460 void Close() override; | 458 void Close() override; |
461 void OnResize(const ResizeParams& params) override; | 459 void OnResize(const ResizeParams& params) override; |
462 void OnSetFocus(bool enable) override; | 460 void OnSetFocus(bool enable) override; |
463 void OnWasHidden() override; | |
464 void OnWasShown(bool needs_repainting, | |
465 const ui::LatencyInfo& latency_info) override; | |
466 GURL GetURLForGraphicsContext3D() override; | 461 GURL GetURLForGraphicsContext3D() override; |
467 void OnImeSetComposition( | 462 void OnImeSetComposition( |
468 const base::string16& text, | 463 const base::string16& text, |
469 const std::vector<blink::WebCompositionUnderline>& underlines, | 464 const std::vector<blink::WebCompositionUnderline>& underlines, |
470 const gfx::Range& replacement_range, | 465 const gfx::Range& replacement_range, |
471 int selection_start, | 466 int selection_start, |
472 int selection_end) override; | 467 int selection_end) override; |
473 void OnImeConfirmComposition(const base::string16& text, | 468 void OnImeConfirmComposition(const base::string16& text, |
474 const gfx::Range& replacement_range, | 469 const gfx::Range& replacement_range, |
475 bool keep_selection) override; | 470 bool keep_selection) override; |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
678 bool enable_showing, | 673 bool enable_showing, |
679 bool animate); | 674 bool animate); |
680 void OnExtractSmartClipData(const gfx::Rect& rect); | 675 void OnExtractSmartClipData(const gfx::Rect& rect); |
681 #elif defined(OS_MACOSX) | 676 #elif defined(OS_MACOSX) |
682 void OnGetRenderedText(); | 677 void OnGetRenderedText(); |
683 #endif | 678 #endif |
684 | 679 |
685 // Page message handlers ----------------------------------------------------- | 680 // Page message handlers ----------------------------------------------------- |
686 void OnUpdateWindowScreenRect(gfx::Rect window_screen_rect); | 681 void OnUpdateWindowScreenRect(gfx::Rect window_screen_rect); |
687 void OnSetZoomLevel(PageMsg_SetZoomLevel_Command command, double zoom_level); | 682 void OnSetZoomLevel(PageMsg_SetZoomLevel_Command command, double zoom_level); |
| 683 void OnPageWasHidden(); |
| 684 void OnPageWasShown(); |
688 | 685 |
689 // Adding a new message handler? Please add it in alphabetical order above | 686 // Adding a new message handler? Please add it in alphabetical order above |
690 // and put it in the same position in the .cc file. | 687 // and put it in the same position in the .cc file. |
691 | 688 |
692 // Misc private functions ---------------------------------------------------- | 689 // Misc private functions ---------------------------------------------------- |
693 // Check whether the preferred size has changed. | 690 // Check whether the preferred size has changed. |
694 void CheckPreferredSize(); | 691 void CheckPreferredSize(); |
695 | 692 |
696 #if defined(OS_ANDROID) | 693 #if defined(OS_ANDROID) |
697 // Launch an Android content intent with the given URL. | 694 // Launch an Android content intent with the given URL. |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
969 // use the Observer interface to filter IPC messages and receive frame change | 966 // use the Observer interface to filter IPC messages and receive frame change |
970 // notifications. | 967 // notifications. |
971 // --------------------------------------------------------------------------- | 968 // --------------------------------------------------------------------------- |
972 | 969 |
973 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 970 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
974 }; | 971 }; |
975 | 972 |
976 } // namespace content | 973 } // namespace content |
977 | 974 |
978 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 975 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |