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_widget.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_WIDGET_H_ 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 10
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 blink::WebRect rootWindowRect() override; 189 blink::WebRect rootWindowRect() override;
190 blink::WebScreenInfo screenInfo() override; 190 blink::WebScreenInfo screenInfo() override;
191 void resetInputMethod() override; 191 void resetInputMethod() override;
192 void didHandleGestureEvent(const blink::WebGestureEvent& event, 192 void didHandleGestureEvent(const blink::WebGestureEvent& event,
193 bool event_cancelled) override; 193 bool event_cancelled) override;
194 void didOverscroll(const blink::WebFloatSize& unusedDelta, 194 void didOverscroll(const blink::WebFloatSize& unusedDelta,
195 const blink::WebFloatSize& accumulatedRootOverScroll, 195 const blink::WebFloatSize& accumulatedRootOverScroll,
196 const blink::WebFloatPoint& position, 196 const blink::WebFloatPoint& position,
197 const blink::WebFloatSize& velocity) override; 197 const blink::WebFloatSize& velocity) override;
198 void showImeIfNeeded() override; 198 void showImeIfNeeded() override;
199 199 void convertViewportToWindow(blink::WebRect* rect) override;
200 // Converts the |rect| from Viewport coordinates to Window coordinates.
201 // See RenderView::convertViewportToWindow for more details.
202 void convertViewportToWindow(blink::WebRect* rect);
203 200
204 #if defined(OS_ANDROID) 201 #if defined(OS_ANDROID)
205 // Notifies that a tap was not consumed, so showing a UI for the unhandled 202 // Notifies that a tap was not consumed, so showing a UI for the unhandled
206 // tap may be needed. 203 // tap may be needed.
207 // Performs various checks on the given WebNode to apply heuristics to 204 // Performs various checks on the given WebNode to apply heuristics to
208 // determine if triggering is appropriate. 205 // determine if triggering is appropriate.
209 void showUnhandledTapUIIfNeeded(const blink::WebPoint& tapped_position, 206 void showUnhandledTapUIIfNeeded(const blink::WebPoint& tapped_position,
210 const blink::WebNode& tapped_node, 207 const blink::WebNode& tapped_node,
211 bool page_changed) override; 208 bool page_changed) override;
212 #endif 209 #endif
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 void OnUpdateVideoAck(int32 video_id); 433 void OnUpdateVideoAck(int32 video_id);
437 void OnRequestMoveAck(); 434 void OnRequestMoveAck();
438 virtual void OnImeSetComposition( 435 virtual void OnImeSetComposition(
439 const base::string16& text, 436 const base::string16& text,
440 const std::vector<blink::WebCompositionUnderline>& underlines, 437 const std::vector<blink::WebCompositionUnderline>& underlines,
441 int selection_start, 438 int selection_start,
442 int selection_end); 439 int selection_end);
443 virtual void OnImeConfirmComposition(const base::string16& text, 440 virtual void OnImeConfirmComposition(const base::string16& text,
444 const gfx::Range& replacement_range, 441 const gfx::Range& replacement_range,
445 bool keep_selection); 442 bool keep_selection);
443 // Called when the device scale factor is changed, or the layer tree is
444 // initialized.
445 virtual void OnDeviceScaleFactorChanged();
446
446 void OnRepaint(gfx::Size size_to_paint); 447 void OnRepaint(gfx::Size size_to_paint);
447 void OnSyntheticGestureCompleted(); 448 void OnSyntheticGestureCompleted();
448 void OnSetTextDirection(blink::WebTextDirection direction); 449 void OnSetTextDirection(blink::WebTextDirection direction);
449 void OnGetFPS(); 450 void OnGetFPS();
450 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect, 451 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect,
451 const gfx::Rect& window_screen_rect); 452 const gfx::Rect& window_screen_rect);
452 void OnShowImeIfNeeded(); 453 void OnShowImeIfNeeded();
453 void OnSetSurfaceIdNamespace(uint32_t surface_id_namespace); 454 void OnSetSurfaceIdNamespace(uint32_t surface_id_namespace);
454 void OnHandleCompositorProto(const std::vector<uint8_t>& proto); 455 void OnHandleCompositorProto(const std::vector<uint8_t>& proto);
455 456
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 804
804 scoped_ptr<scheduler::RenderWidgetSchedulingState> 805 scoped_ptr<scheduler::RenderWidgetSchedulingState>
805 render_widget_scheduling_state_; 806 render_widget_scheduling_state_;
806 807
807 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 808 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
808 }; 809 };
809 810
810 } // namespace content 811 } // namespace content
811 812
812 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 813 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698