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

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

Issue 1456753002: Compute the popup location/size correctly when use-zoom-for-dsf is enabled. (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
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 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 const ui::LatencyInfo& latency_info) override; 476 const ui::LatencyInfo& latency_info) override;
477 GURL GetURLForGraphicsContext3D() override; 477 GURL GetURLForGraphicsContext3D() override;
478 void OnImeSetComposition( 478 void OnImeSetComposition(
479 const base::string16& text, 479 const base::string16& text,
480 const std::vector<blink::WebCompositionUnderline>& underlines, 480 const std::vector<blink::WebCompositionUnderline>& underlines,
481 int selection_start, 481 int selection_start,
482 int selection_end) override; 482 int selection_end) override;
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;
487 bool SetDeviceColorProfile(const std::vector<char>& color_profile) override; 486 bool SetDeviceColorProfile(const std::vector<char>& color_profile) override;
488 void OnOrientationChange() override; 487 void OnOrientationChange() override;
489 ui::TextInputType GetTextInputType() override; 488 ui::TextInputType GetTextInputType() override;
490 void GetSelectionBounds(gfx::Rect* start, gfx::Rect* end) override; 489 void GetSelectionBounds(gfx::Rect* start, gfx::Rect* end) override;
491 void FocusChangeComplete() override; 490 void FocusChangeComplete() override;
492 void GetCompositionCharacterBounds( 491 void GetCompositionCharacterBounds(
493 std::vector<gfx::Rect>* character_bounds) override; 492 std::vector<gfx::Rect>* character_bounds) override;
494 void GetCompositionRange(gfx::Range* range) override; 493 void GetCompositionRange(gfx::Range* range) override;
495 bool CanComposeInline() override; 494 bool CanComposeInline() override;
496 void DidCommitCompositorFrame() override; 495 void DidCommitCompositorFrame() override;
497 void DidCompletePageScaleAnimation() override; 496 void DidCompletePageScaleAnimation() override;
497 void OnDeviceScaleFactorChanged() 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,
504 bool was_created_by_renderer); 504 bool was_created_by_renderer);
505 void SetScreenMetricsEmulationParameters( 505 void SetScreenMetricsEmulationParameters(
506 bool enabled, 506 bool enabled,
507 const blink::WebDeviceEmulationParams& params) override; 507 const blink::WebDeviceEmulationParams& params) override;
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 navigation_gesture_ = gesture; 764 navigation_gesture_ = gesture;
765 } 765 }
766 766
767 // Platform specific theme preferences if any are updated here. 767 // Platform specific theme preferences if any are updated here.
768 #if defined(OS_WIN) 768 #if defined(OS_WIN)
769 void UpdateThemePrefs(); 769 void UpdateThemePrefs();
770 #else 770 #else
771 void UpdateThemePrefs() {} 771 void UpdateThemePrefs() {}
772 #endif 772 #endif
773 773
774 void UpdateDeviceScaleFactor(); 774 void UpdateWebViewWithDeviceScaleFactor();
775 775
776 // --------------------------------------------------------------------------- 776 // ---------------------------------------------------------------------------
777 // ADDING NEW FUNCTIONS? Please keep private functions alphabetized and put 777 // ADDING NEW FUNCTIONS? Please keep private functions alphabetized and put
778 // it in the same order in the .cc file as it was in the header. 778 // it in the same order in the .cc file as it was in the header.
779 // --------------------------------------------------------------------------- 779 // ---------------------------------------------------------------------------
780 780
781 // Settings ------------------------------------------------------------------ 781 // Settings ------------------------------------------------------------------
782 782
783 WebPreferences webkit_preferences_; 783 WebPreferences webkit_preferences_;
784 RendererPreferences renderer_preferences_; 784 RendererPreferences renderer_preferences_;
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
1033 // 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
1034 // notifications. 1034 // notifications.
1035 // --------------------------------------------------------------------------- 1035 // ---------------------------------------------------------------------------
1036 1036
1037 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1037 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1038 }; 1038 };
1039 1039
1040 } // namespace content 1040 } // namespace content
1041 1041
1042 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1042 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698