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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 | 192 |
193 #if defined(OS_ANDROID) | 193 #if defined(OS_ANDROID) |
194 void DismissDateTimeDialog(); | 194 void DismissDateTimeDialog(); |
195 #endif | 195 #endif |
196 | 196 |
197 bool is_loading() const { return frames_in_progress_ != 0; } | 197 bool is_loading() const { return frames_in_progress_ != 0; } |
198 | 198 |
199 void FrameDidStartLoading(blink::WebFrame* frame); | 199 void FrameDidStartLoading(blink::WebFrame* frame); |
200 void FrameDidStopLoading(blink::WebFrame* frame); | 200 void FrameDidStopLoading(blink::WebFrame* frame); |
201 | 201 |
202 // Sets the zoom level and notifies observers. Doesn't call zoomLevelChanged, | 202 // Sets the zoom level and notifies observers. |
203 // as that is only for changes that aren't initiated by the client. | |
204 void SetZoomLevel(double zoom_level); | 203 void SetZoomLevel(double zoom_level); |
205 | 204 |
206 double page_zoom_level() { | 205 double page_zoom_level() { |
207 return page_zoom_level_; | 206 return page_zoom_level_; |
208 } | 207 } |
209 | 208 |
210 // Sets page-level focus in this view and notifies plugins and Blink's | 209 // Sets page-level focus in this view and notifies plugins and Blink's |
211 // FocusController. | 210 // FocusController. |
212 void SetFocus(bool enable); | 211 void SetFocus(bool enable); |
213 | 212 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 const blink::WebSize& inner_viewport_offset, | 335 const blink::WebSize& inner_viewport_offset, |
337 const blink::WebRect& touch_rect, | 336 const blink::WebRect& touch_rect, |
338 const blink::WebVector<blink::WebRect>& target_rects) override; | 337 const blink::WebVector<blink::WebRect>& target_rects) override; |
339 #endif | 338 #endif |
340 blink::WebString acceptLanguages() override; | 339 blink::WebString acceptLanguages() override; |
341 void navigateBackForwardSoon(int offset) override; | 340 void navigateBackForwardSoon(int offset) override; |
342 int historyBackListCount() override; | 341 int historyBackListCount() override; |
343 int historyForwardListCount() override; | 342 int historyForwardListCount() override; |
344 blink::WebSpeechRecognizer* speechRecognizer() override; | 343 blink::WebSpeechRecognizer* speechRecognizer() override; |
345 void zoomLimitsChanged(double minimum_level, double maximum_level) override; | 344 void zoomLimitsChanged(double minimum_level, double maximum_level) override; |
346 virtual void zoomLevelChanged(); | |
347 void pageScaleFactorChanged() override; | 345 void pageScaleFactorChanged() override; |
348 virtual double zoomLevelToZoomFactor(double zoom_level) const; | 346 virtual double zoomLevelToZoomFactor(double zoom_level) const; |
349 virtual double zoomFactorToZoomLevel(double factor) const; | 347 virtual double zoomFactorToZoomLevel(double factor) const; |
350 void draggableRegionsChanged() override; | 348 void draggableRegionsChanged() override; |
351 void pageImportanceSignalsChanged() override; | 349 void pageImportanceSignalsChanged() override; |
352 void didAutoResize(const blink::WebSize& newSize) override; | 350 void didAutoResize(const blink::WebSize& newSize) override; |
353 blink::WebRect rootWindowRect() override; | 351 blink::WebRect rootWindowRect() override; |
354 void didFocus() override; | 352 void didFocus() override; |
355 | 353 |
356 #if defined(OS_ANDROID) | 354 #if defined(OS_ANDROID) |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 void OnSetBackgroundOpaque(bool opaque); | 556 void OnSetBackgroundOpaque(bool opaque); |
559 void OnExitFullscreen(); | 557 void OnExitFullscreen(); |
560 void OnSetHistoryOffsetAndLength(int history_offset, int history_length); | 558 void OnSetHistoryOffsetAndLength(int history_offset, int history_length); |
561 void OnSetInitialFocus(bool reverse); | 559 void OnSetInitialFocus(bool reverse); |
562 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); | 560 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); |
563 void OnSetWebUIProperty(const std::string& name, const std::string& value); | 561 void OnSetWebUIProperty(const std::string& name, const std::string& value); |
564 void OnSuppressDialogsUntilSwapOut(); | 562 void OnSuppressDialogsUntilSwapOut(); |
565 void OnUpdateTargetURLAck(); | 563 void OnUpdateTargetURLAck(); |
566 void OnUpdateWebPreferences(const WebPreferences& prefs); | 564 void OnUpdateWebPreferences(const WebPreferences& prefs); |
567 void OnSetPageScale(float page_scale_factor); | 565 void OnSetPageScale(float page_scale_factor); |
568 void OnZoom(PageZoom zoom); | |
569 void OnForceRedraw(const ui::LatencyInfo& latency_info); | 566 void OnForceRedraw(const ui::LatencyInfo& latency_info); |
570 void OnSelectWordAroundCaret(); | 567 void OnSelectWordAroundCaret(); |
571 void OnAudioStateChanged(bool is_audio_playing); | 568 void OnAudioStateChanged(bool is_audio_playing); |
572 #if defined(OS_ANDROID) | 569 #if defined(OS_ANDROID) |
573 void OnUndoScrollFocusedEditableNodeIntoRect(); | 570 void OnUndoScrollFocusedEditableNodeIntoRect(); |
574 void OnUpdateBrowserControlsState(bool enable_hiding, | 571 void OnUpdateBrowserControlsState(bool enable_hiding, |
575 bool enable_showing, | 572 bool enable_showing, |
576 bool animate); | 573 bool animate); |
577 void OnExtractSmartClipData(const gfx::Rect& rect); | 574 void OnExtractSmartClipData(const gfx::Rect& rect); |
578 #elif defined(OS_MACOSX) | 575 #elif defined(OS_MACOSX) |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
851 // use the Observer interface to filter IPC messages and receive frame change | 848 // use the Observer interface to filter IPC messages and receive frame change |
852 // notifications. | 849 // notifications. |
853 // --------------------------------------------------------------------------- | 850 // --------------------------------------------------------------------------- |
854 | 851 |
855 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 852 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
856 }; | 853 }; |
857 | 854 |
858 } // namespace content | 855 } // namespace content |
859 | 856 |
860 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 857 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |