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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 const gfx::Size& max_size); | 281 const gfx::Size& max_size); |
282 void DisableAutoResizeForTesting(const gfx::Size& new_size); | 282 void DisableAutoResizeForTesting(const gfx::Size& new_size); |
283 | 283 |
284 // IPC::Listener implementation ---------------------------------------------- | 284 // IPC::Listener implementation ---------------------------------------------- |
285 | 285 |
286 bool OnMessageReceived(const IPC::Message& msg) override; | 286 bool OnMessageReceived(const IPC::Message& msg) override; |
287 | 287 |
288 // blink::WebWidgetClient implementation ------------------------------------ | 288 // blink::WebWidgetClient implementation ------------------------------------ |
289 | 289 |
290 // Most methods are handled by RenderWidget. | 290 // Most methods are handled by RenderWidget. |
291 void didFocus() override; | |
292 void show(blink::WebNavigationPolicy policy) override; | 291 void show(blink::WebNavigationPolicy policy) override; |
293 void didHandleGestureEvent(const blink::WebGestureEvent& event, | 292 void didHandleGestureEvent(const blink::WebGestureEvent& event, |
294 bool event_cancelled) override; | 293 bool event_cancelled) override; |
295 void onMouseDown(const blink::WebNode& mouse_down_node) override; | 294 void onMouseDown(const blink::WebNode& mouse_down_node) override; |
296 void initializeLayerTreeView() override; | 295 void initializeLayerTreeView() override; |
297 | 296 |
298 // TODO(lfg): Remove once WebViewClient no longer inherits from | 297 // TODO(lfg): Remove once WebViewClient no longer inherits from |
299 // WebWidgetClient. | 298 // WebWidgetClient. |
300 void closeWidgetSoon() override; | 299 void closeWidgetSoon() override; |
301 void convertViewportToWindow(blink::WebRect* rect) override; | 300 void convertViewportToWindow(blink::WebRect* rect) override; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 blink::WebSpeechRecognizer* speechRecognizer() override; | 377 blink::WebSpeechRecognizer* speechRecognizer() override; |
379 void zoomLimitsChanged(double minimum_level, double maximum_level) override; | 378 void zoomLimitsChanged(double minimum_level, double maximum_level) override; |
380 virtual void zoomLevelChanged(); | 379 virtual void zoomLevelChanged(); |
381 void pageScaleFactorChanged() override; | 380 void pageScaleFactorChanged() override; |
382 virtual double zoomLevelToZoomFactor(double zoom_level) const; | 381 virtual double zoomLevelToZoomFactor(double zoom_level) const; |
383 virtual double zoomFactorToZoomLevel(double factor) const; | 382 virtual double zoomFactorToZoomLevel(double factor) const; |
384 void draggableRegionsChanged() override; | 383 void draggableRegionsChanged() override; |
385 void pageImportanceSignalsChanged() override; | 384 void pageImportanceSignalsChanged() override; |
386 void didAutoResize(const blink::WebSize& newSize) override; | 385 void didAutoResize(const blink::WebSize& newSize) override; |
387 blink::WebRect rootWindowRect() override; | 386 blink::WebRect rootWindowRect() override; |
| 387 void didFocus() override; |
388 | 388 |
389 #if defined(OS_ANDROID) | 389 #if defined(OS_ANDROID) |
390 void scheduleContentIntent(const blink::WebURL& intent, | 390 void scheduleContentIntent(const blink::WebURL& intent, |
391 bool is_main_frame) override; | 391 bool is_main_frame) override; |
392 void cancelScheduledContentIntents() override; | 392 void cancelScheduledContentIntents() override; |
393 blink::WebContentDetectionResult detectContentAround( | 393 blink::WebContentDetectionResult detectContentAround( |
394 const blink::WebHitTestResult& touch_hit) override; | 394 const blink::WebHitTestResult& touch_hit) override; |
395 | 395 |
396 // Only used on Android since all other platforms implement | 396 // Only used on Android since all other platforms implement |
397 // date and time input fields using MULTIPLE_FIELDS_UI | 397 // date and time input fields using MULTIPLE_FIELDS_UI |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
927 // use the Observer interface to filter IPC messages and receive frame change | 927 // use the Observer interface to filter IPC messages and receive frame change |
928 // notifications. | 928 // notifications. |
929 // --------------------------------------------------------------------------- | 929 // --------------------------------------------------------------------------- |
930 | 930 |
931 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 931 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
932 }; | 932 }; |
933 | 933 |
934 } // namespace content | 934 } // namespace content |
935 | 935 |
936 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 936 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |