Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: chrome/renderer/render_view.h

Issue 5612005: Client-based geolocation support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_RENDERER_RENDER_VIEW_H_ 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_
6 #define CHROME_RENDERER_RENDER_VIEW_H_ 6 #define CHROME_RENDERER_RENDER_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 class AudioMessageFilter; 56 class AudioMessageFilter;
57 class AutoFillHelper; 57 class AutoFillHelper;
58 class DictionaryValue; 58 class DictionaryValue;
59 class DeviceOrientationDispatcher; 59 class DeviceOrientationDispatcher;
60 class DevToolsAgent; 60 class DevToolsAgent;
61 class DevToolsClient; 61 class DevToolsClient;
62 class DomAutomationController; 62 class DomAutomationController;
63 class DOMUIBindings; 63 class DOMUIBindings;
64 class ExternalHostBindings; 64 class ExternalHostBindings;
65 class FilePath; 65 class FilePath;
66 class GeolocationDispatcher;
66 class GeolocationDispatcherOld; 67 class GeolocationDispatcherOld;
67 class GURL; 68 class GURL;
68 class ListValue; 69 class ListValue;
69 class NavigationState; 70 class NavigationState;
70 class NotificationProvider; 71 class NotificationProvider;
71 class PageClickTracker; 72 class PageClickTracker;
72 class PasswordAutocompleteManager; 73 class PasswordAutocompleteManager;
73 class PepperDeviceTest; 74 class PepperDeviceTest;
74 class PluginGroup; 75 class PluginGroup;
75 class PrintWebViewHelper; 76 class PrintWebViewHelper;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 113
113 namespace WebKit { 114 namespace WebKit {
114 class WebAccessibilityCache; 115 class WebAccessibilityCache;
115 class WebAccessibilityObject; 116 class WebAccessibilityObject;
116 class WebApplicationCacheHost; 117 class WebApplicationCacheHost;
117 class WebApplicationCacheHostClient; 118 class WebApplicationCacheHostClient;
118 class WebDataSource; 119 class WebDataSource;
119 class WebDocument; 120 class WebDocument;
120 class WebDragData; 121 class WebDragData;
121 class WebFrame; 122 class WebFrame;
123 class WebGeolocationClient;
122 class WebGeolocationServiceInterface; 124 class WebGeolocationServiceInterface;
123 class WebImage; 125 class WebImage;
124 class WebInputElement; 126 class WebInputElement;
125 class WebKeyboardEvent; 127 class WebKeyboardEvent;
126 class WebMediaPlayer; 128 class WebMediaPlayer;
127 class WebMediaPlayerClient; 129 class WebMediaPlayerClient;
128 class WebMouseEvent; 130 class WebMouseEvent;
129 class WebNode; 131 class WebNode;
130 class WebPlugin; 132 class WebPlugin;
131 class WebSpeechInputController; 133 class WebSpeechInputController;
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 const WebKit::WebString& label, 467 const WebKit::WebString& label,
466 int unique_id, 468 int unique_id,
467 unsigned index); 469 unsigned index);
468 virtual void didSelectAutoFillSuggestion(const WebKit::WebNode& node, 470 virtual void didSelectAutoFillSuggestion(const WebKit::WebNode& node,
469 const WebKit::WebString& value, 471 const WebKit::WebString& value,
470 const WebKit::WebString& label, 472 const WebKit::WebString& label,
471 int unique_id); 473 int unique_id);
472 virtual void didClearAutoFillSelection(const WebKit::WebNode& node); 474 virtual void didClearAutoFillSelection(const WebKit::WebNode& node);
473 virtual void didAcceptAutocompleteSuggestion( 475 virtual void didAcceptAutocompleteSuggestion(
474 const WebKit::WebInputElement& element); 476 const WebKit::WebInputElement& element);
477 #if defined(ENABLE_CLIENT_BASED_GEOLOCATION)
478 virtual WebKit::WebGeolocationClient* geolocationClient();
479 #else
475 virtual WebKit::WebGeolocationService* geolocationService(); 480 virtual WebKit::WebGeolocationService* geolocationService();
481 #endif
476 virtual WebKit::WebSpeechInputController* speechInputController( 482 virtual WebKit::WebSpeechInputController* speechInputController(
477 WebKit::WebSpeechInputListener* listener); 483 WebKit::WebSpeechInputListener* listener);
478 virtual WebKit::WebDeviceOrientationClient* deviceOrientationClient(); 484 virtual WebKit::WebDeviceOrientationClient* deviceOrientationClient();
479 virtual void zoomLimitsChanged(double minimum_level, double maximum_level); 485 virtual void zoomLimitsChanged(double minimum_level, double maximum_level);
480 virtual void zoomLevelChanged(); 486 virtual void zoomLevelChanged();
481 487
482 // WebKit::WebFrameClient implementation ------------------------------------- 488 // WebKit::WebFrameClient implementation -------------------------------------
483 489
484 virtual WebKit::WebPlugin* createPlugin( 490 virtual WebKit::WebPlugin* createPlugin(
485 WebKit::WebFrame* frame, 491 WebKit::WebFrame* frame,
(...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after
1357 // Holds a reference to the service which provides desktop notifications. 1363 // Holds a reference to the service which provides desktop notifications.
1358 scoped_ptr<NotificationProvider> notification_provider_; 1364 scoped_ptr<NotificationProvider> notification_provider_;
1359 1365
1360 // PrintWebViewHelper handles printing. Note that this object is constructed 1366 // PrintWebViewHelper handles printing. Note that this object is constructed
1361 // when printing for the first time but only destroyed with the RenderView. 1367 // when printing for the first time but only destroyed with the RenderView.
1362 scoped_ptr<PrintWebViewHelper> print_helper_; 1368 scoped_ptr<PrintWebViewHelper> print_helper_;
1363 1369
1364 scoped_refptr<AudioMessageFilter> audio_message_filter_; 1370 scoped_refptr<AudioMessageFilter> audio_message_filter_;
1365 1371
1366 // The geolocation dispatcher attached to this view, lazily initialized. 1372 // The geolocation dispatcher attached to this view, lazily initialized.
1373 #if ENABLE_CLIENT_BASED_GEOLOCATION
1374 scoped_ptr<GeolocationDispatcher> geolocation_dispatcher_;
1375 #else
1367 scoped_ptr<GeolocationDispatcherOld> geolocation_dispatcher_; 1376 scoped_ptr<GeolocationDispatcherOld> geolocation_dispatcher_;
1377 #endif
joth 2010/12/07 10:24:51 ISTM we could have reduced churn by leaving the cl
John Knottenbelt 2010/12/07 12:30:04 Agree. Once we switch over, I plan to rename thing
1368 1378
1369 // Handles accessibility requests into the renderer side, as well as 1379 // Handles accessibility requests into the renderer side, as well as
1370 // maintains the cache and other features of the accessibility tree. 1380 // maintains the cache and other features of the accessibility tree.
1371 scoped_ptr<WebKit::WebAccessibilityCache> accessibility_; 1381 scoped_ptr<WebKit::WebAccessibilityCache> accessibility_;
1372 1382
1373 // Collect renderer accessibility notifications until they are ready to be 1383 // Collect renderer accessibility notifications until they are ready to be
1374 // sent to the browser. 1384 // sent to the browser.
1375 std::vector<RendererAccessibilityNotification> 1385 std::vector<RendererAccessibilityNotification>
1376 pending_accessibility_notifications_; 1386 pending_accessibility_notifications_;
1377 1387
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
1467 // ADDING NEW DATA? Please see if it fits appropriately in one of the above 1477 // ADDING NEW DATA? Please see if it fits appropriately in one of the above
1468 // sections rather than throwing it randomly at the end. If you're adding a 1478 // sections rather than throwing it randomly at the end. If you're adding a
1469 // bunch of stuff, you should probably create a helper class and put your 1479 // bunch of stuff, you should probably create a helper class and put your
1470 // data and methods on that to avoid bloating RenderView more. 1480 // data and methods on that to avoid bloating RenderView more.
1471 // --------------------------------------------------------------------------- 1481 // ---------------------------------------------------------------------------
1472 1482
1473 DISALLOW_COPY_AND_ASSIGN(RenderView); 1483 DISALLOW_COPY_AND_ASSIGN(RenderView);
1474 }; 1484 };
1475 1485
1476 #endif // CHROME_RENDERER_RENDER_VIEW_H_ 1486 #endif // CHROME_RENDERER_RENDER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698