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

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, 1 month 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 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 const ui::LatencyInfo& latency_info) override; 469 const ui::LatencyInfo& latency_info) override;
470 GURL GetURLForGraphicsContext3D() override; 470 GURL GetURLForGraphicsContext3D() override;
471 void OnImeSetComposition( 471 void OnImeSetComposition(
472 const base::string16& text, 472 const base::string16& text,
473 const std::vector<blink::WebCompositionUnderline>& underlines, 473 const std::vector<blink::WebCompositionUnderline>& underlines,
474 int selection_start, 474 int selection_start,
475 int selection_end) override; 475 int selection_end) override;
476 void OnImeConfirmComposition(const base::string16& text, 476 void OnImeConfirmComposition(const base::string16& text,
477 const gfx::Range& replacement_range, 477 const gfx::Range& replacement_range,
478 bool keep_selection) override; 478 bool keep_selection) override;
479 void SetDeviceScaleFactor(float device_scale_factor) override;
480 bool SetDeviceColorProfile(const std::vector<char>& color_profile) override; 479 bool SetDeviceColorProfile(const std::vector<char>& color_profile) override;
481 void OnOrientationChange() override; 480 void OnOrientationChange() override;
482 ui::TextInputType GetTextInputType() override; 481 ui::TextInputType GetTextInputType() override;
483 void GetSelectionBounds(gfx::Rect* start, gfx::Rect* end) override; 482 void GetSelectionBounds(gfx::Rect* start, gfx::Rect* end) override;
484 void FocusChangeComplete() override; 483 void FocusChangeComplete() override;
485 void GetCompositionCharacterBounds( 484 void GetCompositionCharacterBounds(
486 std::vector<gfx::Rect>* character_bounds) override; 485 std::vector<gfx::Rect>* character_bounds) override;
487 void GetCompositionRange(gfx::Range* range) override; 486 void GetCompositionRange(gfx::Range* range) override;
488 bool CanComposeInline() override; 487 bool CanComposeInline() override;
489 void DidCommitCompositorFrame() override; 488 void DidCommitCompositorFrame() override;
490 void DidCompletePageScaleAnimation() override; 489 void DidCompletePageScaleAnimation() override;
491 #if defined(OS_ANDROID) 490 #if defined(OS_ANDROID)
492 bool DoesRecordFullLayer() const override; 491 bool DoesRecordFullLayer() const override;
493 #endif 492 #endif
493 void OnDeviceScaleFactorChanged() override;
494 494
495 protected: 495 protected:
496 RenderViewImpl(CompositorDependencies* compositor_deps, 496 RenderViewImpl(CompositorDependencies* compositor_deps,
497 const ViewMsg_New_Params& params); 497 const ViewMsg_New_Params& params);
498 498
499 void Initialize(const ViewMsg_New_Params& params, 499 void Initialize(const ViewMsg_New_Params& params,
500 bool was_created_by_renderer); 500 bool was_created_by_renderer);
501 void SetScreenMetricsEmulationParameters( 501 void SetScreenMetricsEmulationParameters(
502 bool enabled, 502 bool enabled,
503 const blink::WebDeviceEmulationParams& params) override; 503 const blink::WebDeviceEmulationParams& params) override;
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 navigation_gesture_ = gesture; 758 navigation_gesture_ = gesture;
759 } 759 }
760 760
761 // Platform specific theme preferences if any are updated here. 761 // Platform specific theme preferences if any are updated here.
762 #if defined(OS_WIN) 762 #if defined(OS_WIN)
763 void UpdateThemePrefs(); 763 void UpdateThemePrefs();
764 #else 764 #else
765 void UpdateThemePrefs() {} 765 void UpdateThemePrefs() {}
766 #endif 766 #endif
767 767
768 void UpdateDeviceScaleFactor(); 768 void UpdateWebViewWithDeviceScaleFactor();
769 769
770 // --------------------------------------------------------------------------- 770 // ---------------------------------------------------------------------------
771 // ADDING NEW FUNCTIONS? Please keep private functions alphabetized and put 771 // ADDING NEW FUNCTIONS? Please keep private functions alphabetized and put
772 // it in the same order in the .cc file as it was in the header. 772 // it in the same order in the .cc file as it was in the header.
773 // --------------------------------------------------------------------------- 773 // ---------------------------------------------------------------------------
774 774
775 // Settings ------------------------------------------------------------------ 775 // Settings ------------------------------------------------------------------
776 776
777 WebPreferences webkit_preferences_; 777 WebPreferences webkit_preferences_;
778 RendererPreferences renderer_preferences_; 778 RendererPreferences renderer_preferences_;
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
1024 // use the Observer interface to filter IPC messages and receive frame change 1024 // use the Observer interface to filter IPC messages and receive frame change
1025 // notifications. 1025 // notifications.
1026 // --------------------------------------------------------------------------- 1026 // ---------------------------------------------------------------------------
1027 1027
1028 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1028 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1029 }; 1029 };
1030 1030
1031 } // namespace content 1031 } // namespace content
1032 1032
1033 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1033 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698