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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 const gfx::Size& max_size); | 277 const gfx::Size& max_size); |
278 void DisableAutoResizeForTesting(const gfx::Size& new_size); | 278 void DisableAutoResizeForTesting(const gfx::Size& new_size); |
279 | 279 |
280 // IPC::Listener implementation ---------------------------------------------- | 280 // IPC::Listener implementation ---------------------------------------------- |
281 | 281 |
282 bool OnMessageReceived(const IPC::Message& msg) override; | 282 bool OnMessageReceived(const IPC::Message& msg) override; |
283 | 283 |
284 // blink::WebWidgetClient implementation ------------------------------------ | 284 // blink::WebWidgetClient implementation ------------------------------------ |
285 | 285 |
286 // Most methods are handled by RenderWidget. | 286 // Most methods are handled by RenderWidget. |
287 void didFocus() override; | |
288 void show(blink::WebNavigationPolicy policy) override; | 287 void show(blink::WebNavigationPolicy policy) override; |
289 void didHandleGestureEvent(const blink::WebGestureEvent& event, | 288 void didHandleGestureEvent(const blink::WebGestureEvent& event, |
290 bool event_cancelled) override; | 289 bool event_cancelled) override; |
291 void onMouseDown(const blink::WebNode& mouse_down_node) override; | 290 void onMouseDown(const blink::WebNode& mouse_down_node) override; |
292 void initializeLayerTreeView() override; | 291 void initializeLayerTreeView() override; |
293 | 292 |
294 // TODO(lfg): Remove once WebViewClient no longer inherits from | 293 // TODO(lfg): Remove once WebViewClient no longer inherits from |
295 // WebWidgetClient. | 294 // WebWidgetClient. |
296 bool allowsBrokenNullLayerTreeView() const override; | 295 bool allowsBrokenNullLayerTreeView() const override; |
297 void closeWidgetSoon() override; | 296 void closeWidgetSoon() override; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 int historyForwardListCount() override; | 373 int historyForwardListCount() override; |
375 blink::WebSpeechRecognizer* speechRecognizer() override; | 374 blink::WebSpeechRecognizer* speechRecognizer() override; |
376 void zoomLimitsChanged(double minimum_level, double maximum_level) override; | 375 void zoomLimitsChanged(double minimum_level, double maximum_level) override; |
377 virtual void zoomLevelChanged(); | 376 virtual void zoomLevelChanged(); |
378 void pageScaleFactorChanged() override; | 377 void pageScaleFactorChanged() override; |
379 virtual double zoomLevelToZoomFactor(double zoom_level) const; | 378 virtual double zoomLevelToZoomFactor(double zoom_level) const; |
380 virtual double zoomFactorToZoomLevel(double factor) const; | 379 virtual double zoomFactorToZoomLevel(double factor) const; |
381 void draggableRegionsChanged() override; | 380 void draggableRegionsChanged() override; |
382 void pageImportanceSignalsChanged() override; | 381 void pageImportanceSignalsChanged() override; |
383 void didAutoResize(const blink::WebSize& newSize) override; | 382 void didAutoResize(const blink::WebSize& newSize) override; |
| 383 void didFocus() override; |
384 | 384 |
385 #if defined(OS_ANDROID) | 385 #if defined(OS_ANDROID) |
386 void scheduleContentIntent(const blink::WebURL& intent, | 386 void scheduleContentIntent(const blink::WebURL& intent, |
387 bool is_main_frame) override; | 387 bool is_main_frame) override; |
388 void cancelScheduledContentIntents() override; | 388 void cancelScheduledContentIntents() override; |
389 blink::WebContentDetectionResult detectContentAround( | 389 blink::WebContentDetectionResult detectContentAround( |
390 const blink::WebHitTestResult& touch_hit) override; | 390 const blink::WebHitTestResult& touch_hit) override; |
391 | 391 |
392 // Only used on Android since all other platforms implement | 392 // Only used on Android since all other platforms implement |
393 // date and time input fields using MULTIPLE_FIELDS_UI | 393 // date and time input fields using MULTIPLE_FIELDS_UI |
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
938 // use the Observer interface to filter IPC messages and receive frame change | 938 // use the Observer interface to filter IPC messages and receive frame change |
939 // notifications. | 939 // notifications. |
940 // --------------------------------------------------------------------------- | 940 // --------------------------------------------------------------------------- |
941 | 941 |
942 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 942 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
943 }; | 943 }; |
944 | 944 |
945 } // namespace content | 945 } // namespace content |
946 | 946 |
947 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 947 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |