| 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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 void OnImeConfirmComposition(const base::string16& text, | 483 void OnImeConfirmComposition(const base::string16& text, |
| 484 const gfx::Range& replacement_range, | 484 const gfx::Range& replacement_range, |
| 485 bool keep_selection) override; | 485 bool keep_selection) override; |
| 486 void SetDeviceScaleFactor(float device_scale_factor) override; | 486 void SetDeviceScaleFactor(float device_scale_factor) override; |
| 487 bool SetDeviceColorProfile(const std::vector<char>& color_profile) override; | 487 bool SetDeviceColorProfile(const std::vector<char>& color_profile) override; |
| 488 void OnOrientationChange() override; | 488 void OnOrientationChange() override; |
| 489 ui::TextInputType GetTextInputType() override; | 489 ui::TextInputType GetTextInputType() override; |
| 490 void GetSelectionBounds(gfx::Rect* start, gfx::Rect* end) override; | 490 void GetSelectionBounds(gfx::Rect* start, gfx::Rect* end) override; |
| 491 void FocusChangeComplete() override; | 491 void FocusChangeComplete() override; |
| 492 void GetCompositionCharacterBounds( | 492 void GetCompositionCharacterBounds( |
| 493 std::vector<gfx::Rect>* character_bounds) override; | 493 std::vector<gfx::Rect>* character_bounds_in_window) override; |
| 494 void GetCompositionRange(gfx::Range* range) override; | 494 void GetCompositionRange(gfx::Range* range) override; |
| 495 bool CanComposeInline() override; | 495 bool CanComposeInline() override; |
| 496 void DidCommitCompositorFrame() override; | 496 void DidCommitCompositorFrame() override; |
| 497 void DidCompletePageScaleAnimation() override; | 497 void DidCompletePageScaleAnimation() override; |
| 498 | 498 |
| 499 protected: | 499 protected: |
| 500 RenderViewImpl(CompositorDependencies* compositor_deps, | 500 RenderViewImpl(CompositorDependencies* compositor_deps, |
| 501 const ViewMsg_New_Params& params); | 501 const ViewMsg_New_Params& params); |
| 502 | 502 |
| 503 void Initialize(const ViewMsg_New_Params& params, | 503 void Initialize(const ViewMsg_New_Params& params, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, NavigateFrame); | 557 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, NavigateFrame); |
| 558 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, BasicRenderFrame); | 558 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, BasicRenderFrame); |
| 559 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, TextInputTypeWithPepper); | 559 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, TextInputTypeWithPepper); |
| 560 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 560 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
| 561 MessageOrderInDidChangeSelection); | 561 MessageOrderInDidChangeSelection); |
| 562 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendCandidateWindowEvents); | 562 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendCandidateWindowEvents); |
| 563 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, RenderFrameClearedAfterClose); | 563 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, RenderFrameClearedAfterClose); |
| 564 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, PaintAfterSwapOut); | 564 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, PaintAfterSwapOut); |
| 565 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, | 565 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, |
| 566 ConverViewportToScreenWithZoomForDSF); | 566 ConverViewportToScreenWithZoomForDSF); |
| 567 FRIEND_TEST_ALL_PREFIXES(RenderViewImplScaleFactorTest, |
| 568 GetCompositionCharacterBoundsTest); |
| 567 | 569 |
| 568 typedef std::map<GURL, double> HostZoomLevels; | 570 typedef std::map<GURL, double> HostZoomLevels; |
| 569 | 571 |
| 570 enum ErrorPageType { | 572 enum ErrorPageType { |
| 571 DNS_ERROR, | 573 DNS_ERROR, |
| 572 HTTP_404, | 574 HTTP_404, |
| 573 CONNECTION_ERROR, | 575 CONNECTION_ERROR, |
| 574 }; | 576 }; |
| 575 | 577 |
| 576 // Old WebFrameClient implementations ---------------------------------------- | 578 // Old WebFrameClient implementations ---------------------------------------- |
| (...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1033 // use the Observer interface to filter IPC messages and receive frame change | 1035 // use the Observer interface to filter IPC messages and receive frame change |
| 1034 // notifications. | 1036 // notifications. |
| 1035 // --------------------------------------------------------------------------- | 1037 // --------------------------------------------------------------------------- |
| 1036 | 1038 |
| 1037 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1039 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1038 }; | 1040 }; |
| 1039 | 1041 |
| 1040 } // namespace content | 1042 } // namespace content |
| 1041 | 1043 |
| 1042 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1044 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |