| 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 <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 #if defined(OS_ANDROID) | 511 #if defined(OS_ANDROID) |
| 512 virtual void scheduleContentIntent(const WebKit::WebURL& intent); | 512 virtual void scheduleContentIntent(const WebKit::WebURL& intent); |
| 513 virtual void cancelScheduledContentIntents(); | 513 virtual void cancelScheduledContentIntents(); |
| 514 virtual WebKit::WebContentDetectionResult detectContentAround( | 514 virtual WebKit::WebContentDetectionResult detectContentAround( |
| 515 const WebKit::WebHitTestResult& touch_hit); | 515 const WebKit::WebHitTestResult& touch_hit); |
| 516 | 516 |
| 517 // Only used on Android since all other platforms implement | 517 // Only used on Android since all other platforms implement |
| 518 // date and time input fields using MULTIPLE_FIELDS_UI | 518 // date and time input fields using MULTIPLE_FIELDS_UI |
| 519 virtual bool openDateTimeChooser(const WebKit::WebDateTimeChooserParams&, | 519 virtual bool openDateTimeChooser(const WebKit::WebDateTimeChooserParams&, |
| 520 WebKit::WebDateTimeChooserCompletion*); | 520 WebKit::WebDateTimeChooserCompletion*); |
| 521 virtual void didScrollWithKeyboard(const WebKit::WebSize& delta); |
| 521 #endif | 522 #endif |
| 522 | 523 |
| 523 // WebKit::WebFrameClient implementation ------------------------------------- | 524 // WebKit::WebFrameClient implementation ------------------------------------- |
| 524 | 525 |
| 525 virtual WebKit::WebPlugin* createPlugin( | 526 virtual WebKit::WebPlugin* createPlugin( |
| 526 WebKit::WebFrame* frame, | 527 WebKit::WebFrame* frame, |
| 527 const WebKit::WebPluginParams& params); | 528 const WebKit::WebPluginParams& params); |
| 528 virtual WebKit::WebSharedWorker* createSharedWorker( | 529 virtual WebKit::WebSharedWorker* createSharedWorker( |
| 529 WebKit::WebFrame* frame, const WebKit::WebURL& url, | 530 WebKit::WebFrame* frame, const WebKit::WebURL& url, |
| 530 const WebKit::WebString& name, unsigned long long documentId); | 531 const WebKit::WebString& name, unsigned long long documentId); |
| (...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1351 // | 1352 // |
| 1352 // We don't want to add internal ones since some of the "special" page | 1353 // We don't want to add internal ones since some of the "special" page |
| 1353 // handlers in the browser process just ignore the context menu requests so | 1354 // handlers in the browser process just ignore the context menu requests so |
| 1354 // avoid showing context menus, and so this will cause right clicks to leak | 1355 // avoid showing context menus, and so this will cause right clicks to leak |
| 1355 // entries in this map. Most users of the custom context menu (e.g. Pepper | 1356 // entries in this map. Most users of the custom context menu (e.g. Pepper |
| 1356 // plugins) are normally only on "regular" pages and the regular pages will | 1357 // plugins) are normally only on "regular" pages and the regular pages will |
| 1357 // always respond properly to the request, so we don't have to worry so | 1358 // always respond properly to the request, so we don't have to worry so |
| 1358 // much about leaks. | 1359 // much about leaks. |
| 1359 IDMap<ContextMenuClient, IDMapExternalPointer> pending_context_menus_; | 1360 IDMap<ContextMenuClient, IDMapExternalPointer> pending_context_menus_; |
| 1360 | 1361 |
| 1362 #if defined(OS_ANDROID) |
| 1363 // Cache the old top controls state constraints. Used when updating |
| 1364 // current value only without altering the constraints. |
| 1365 cc::TopControlsState top_controls_constraints_; |
| 1366 #endif |
| 1367 |
| 1361 // View ---------------------------------------------------------------------- | 1368 // View ---------------------------------------------------------------------- |
| 1362 | 1369 |
| 1363 // Cache the preferred size of the page in order to prevent sending the IPC | 1370 // Cache the preferred size of the page in order to prevent sending the IPC |
| 1364 // when layout() recomputes but doesn't actually change sizes. | 1371 // when layout() recomputes but doesn't actually change sizes. |
| 1365 gfx::Size preferred_size_; | 1372 gfx::Size preferred_size_; |
| 1366 | 1373 |
| 1367 // Used to delay determining the preferred size (to avoid intermediate | 1374 // Used to delay determining the preferred size (to avoid intermediate |
| 1368 // states for the sizes). | 1375 // states for the sizes). |
| 1369 base::OneShotTimer<RenderViewImpl> check_preferred_size_timer_; | 1376 base::OneShotTimer<RenderViewImpl> check_preferred_size_timer_; |
| 1370 | 1377 |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1555 // use the Observer interface to filter IPC messages and receive frame change | 1562 // use the Observer interface to filter IPC messages and receive frame change |
| 1556 // notifications. | 1563 // notifications. |
| 1557 // --------------------------------------------------------------------------- | 1564 // --------------------------------------------------------------------------- |
| 1558 | 1565 |
| 1559 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1566 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1560 }; | 1567 }; |
| 1561 | 1568 |
| 1562 } // namespace content | 1569 } // namespace content |
| 1563 | 1570 |
| 1564 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1571 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |