Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Side by Side Diff: content/renderer/render_view_impl.h

Issue 1521853002: Revert of Use Window coordinates for IME composition bounds, auto resize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_in_window) override; 493 std::vector<gfx::Rect>* character_bounds) 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
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);
569 567
570 typedef std::map<GURL, double> HostZoomLevels; 568 typedef std::map<GURL, double> HostZoomLevels;
571 569
572 enum ErrorPageType { 570 enum ErrorPageType {
573 DNS_ERROR, 571 DNS_ERROR,
574 HTTP_404, 572 HTTP_404,
575 CONNECTION_ERROR, 573 CONNECTION_ERROR,
576 }; 574 };
577 575
578 // Old WebFrameClient implementations ---------------------------------------- 576 // Old WebFrameClient implementations ----------------------------------------
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
1035 // use the Observer interface to filter IPC messages and receive frame change 1033 // use the Observer interface to filter IPC messages and receive frame change
1036 // notifications. 1034 // notifications.
1037 // --------------------------------------------------------------------------- 1035 // ---------------------------------------------------------------------------
1038 1036
1039 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1037 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1040 }; 1038 };
1041 1039
1042 } // namespace content 1040 } // namespace content
1043 1041
1044 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1042 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698