| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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> |
| 11 #include <queue> | 11 #include <queue> |
| 12 #include <set> | 12 #include <set> |
| 13 #include <string> | 13 #include <string> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "app/surface/transport_dib.h" | 16 #include "app/surface/transport_dib.h" |
| 17 #include "base/basictypes.h" | 17 #include "base/basictypes.h" |
| 18 #include "base/gtest_prod_util.h" | 18 #include "base/gtest_prod_util.h" |
| 19 #include "base/id_map.h" |
| 19 #include "base/linked_ptr.h" | 20 #include "base/linked_ptr.h" |
| 20 #include "base/observer_list.h" | 21 #include "base/observer_list.h" |
| 21 #include "base/timer.h" | 22 #include "base/timer.h" |
| 22 #include "base/weak_ptr.h" | 23 #include "base/weak_ptr.h" |
| 23 #include "build/build_config.h" | 24 #include "build/build_config.h" |
| 24 #include "chrome/common/content_settings.h" | 25 #include "chrome/common/content_settings.h" |
| 25 #include "chrome/common/edit_command.h" | 26 #include "chrome/common/edit_command.h" |
| 26 #include "chrome/common/navigation_gesture.h" | 27 #include "chrome/common/navigation_gesture.h" |
| 27 #include "chrome/common/page_zoom.h" | 28 #include "chrome/common/page_zoom.h" |
| 28 #include "chrome/common/renderer_preferences.h" | 29 #include "chrome/common/renderer_preferences.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 class LoadProgressTracker; | 71 class LoadProgressTracker; |
| 71 class NavigationState; | 72 class NavigationState; |
| 72 class NotificationProvider; | 73 class NotificationProvider; |
| 73 class PepperDeviceTest; | 74 class PepperDeviceTest; |
| 74 class PrintWebViewHelper; | 75 class PrintWebViewHelper; |
| 75 class RenderViewObserver; | 76 class RenderViewObserver; |
| 76 class RenderViewVisitor; | 77 class RenderViewVisitor; |
| 77 class SearchBox; | 78 class SearchBox; |
| 78 class SkBitmap; | 79 class SkBitmap; |
| 79 class SpeechInputDispatcher; | 80 class SpeechInputDispatcher; |
| 81 class SpellCheckProvider; |
| 80 class WebPluginDelegatePepper; | 82 class WebPluginDelegatePepper; |
| 81 class WebPluginDelegateProxy; | 83 class WebPluginDelegateProxy; |
| 82 struct ContextMenuMediaParams; | 84 struct ContextMenuMediaParams; |
| 83 struct PP_Flash_NetAddress; | 85 struct PP_Flash_NetAddress; |
| 84 struct ThumbnailScore; | 86 struct ThumbnailScore; |
| 85 struct ViewHostMsg_DomMessage_Params; | 87 struct ViewHostMsg_DomMessage_Params; |
| 86 struct ViewHostMsg_GetSearchProviderInstallState_Params; | 88 struct ViewHostMsg_GetSearchProviderInstallState_Params; |
| 87 struct ViewHostMsg_PageHasOSDD_Type; | 89 struct ViewHostMsg_PageHasOSDD_Type; |
| 88 struct ViewHostMsg_RunFileChooser_Params; | 90 struct ViewHostMsg_RunFileChooser_Params; |
| 89 struct ViewMsg_ClosePage_Params; | 91 struct ViewMsg_ClosePage_Params; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 class WebImage; | 140 class WebImage; |
| 139 class WebInputElement; | 141 class WebInputElement; |
| 140 class WebKeyboardEvent; | 142 class WebKeyboardEvent; |
| 141 class WebMediaPlayer; | 143 class WebMediaPlayer; |
| 142 class WebMediaPlayerClient; | 144 class WebMediaPlayerClient; |
| 143 class WebMouseEvent; | 145 class WebMouseEvent; |
| 144 class WebPlugin; | 146 class WebPlugin; |
| 145 class WebSpeechInputController; | 147 class WebSpeechInputController; |
| 146 class WebSpeechInputListener; | 148 class WebSpeechInputListener; |
| 147 class WebStorageNamespace; | 149 class WebStorageNamespace; |
| 150 class WebTextCheckingCompletion; |
| 148 class WebURLRequest; | 151 class WebURLRequest; |
| 149 class WebView; | 152 class WebView; |
| 150 struct WebContextMenuData; | 153 struct WebContextMenuData; |
| 151 struct WebFileChooserParams; | 154 struct WebFileChooserParams; |
| 152 struct WebFindOptions; | 155 struct WebFindOptions; |
| 153 struct WebPluginParams; | 156 struct WebPluginParams; |
| 154 struct WebPoint; | 157 struct WebPoint; |
| 155 struct WebWindowFeatures; | 158 struct WebWindowFeatures; |
| 156 } | 159 } |
| 157 | 160 |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 virtual void didChangeLoadProgress(WebKit::WebFrame* frame, | 411 virtual void didChangeLoadProgress(WebKit::WebFrame* frame, |
| 409 double load_progress); | 412 double load_progress); |
| 410 virtual bool isSmartInsertDeleteEnabled(); | 413 virtual bool isSmartInsertDeleteEnabled(); |
| 411 virtual bool isSelectTrailingWhitespaceEnabled(); | 414 virtual bool isSelectTrailingWhitespaceEnabled(); |
| 412 virtual void didChangeSelection(bool is_selection_empty); | 415 virtual void didChangeSelection(bool is_selection_empty); |
| 413 virtual void didExecuteCommand(const WebKit::WebString& command_name); | 416 virtual void didExecuteCommand(const WebKit::WebString& command_name); |
| 414 virtual bool handleCurrentKeyboardEvent(); | 417 virtual bool handleCurrentKeyboardEvent(); |
| 415 virtual void spellCheck(const WebKit::WebString& text, | 418 virtual void spellCheck(const WebKit::WebString& text, |
| 416 int& offset, | 419 int& offset, |
| 417 int& length); | 420 int& length); |
| 421 virtual void requestCheckingOfText( |
| 422 const WebKit::WebString& text, |
| 423 WebKit::WebTextCheckingCompletion* completion); |
| 418 virtual WebKit::WebString autoCorrectWord( | 424 virtual WebKit::WebString autoCorrectWord( |
| 419 const WebKit::WebString& misspelled_word); | 425 const WebKit::WebString& misspelled_word); |
| 420 virtual void showSpellingUI(bool show); | 426 virtual void showSpellingUI(bool show); |
| 421 virtual bool isShowingSpellingUI(); | 427 virtual bool isShowingSpellingUI(); |
| 422 virtual void updateSpellingUIWithMisspelledWord( | 428 virtual void updateSpellingUIWithMisspelledWord( |
| 423 const WebKit::WebString& word); | 429 const WebKit::WebString& word); |
| 424 virtual void continuousSpellCheckingEnabledStateChanged(); | 430 virtual void continuousSpellCheckingEnabledStateChanged(); |
| 425 virtual bool runFileChooser( | 431 virtual bool runFileChooser( |
| 426 const WebKit::WebFileChooserParams& params, | 432 const WebKit::WebFileChooserParams& params, |
| 427 WebKit::WebFileChooserCompletion* chooser_completion); | 433 WebKit::WebFileChooserCompletion* chooser_completion); |
| (...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1320 // Device orientation dispatcher attached to this view; lazily initialized. | 1326 // Device orientation dispatcher attached to this view; lazily initialized. |
| 1321 DeviceOrientationDispatcher* device_orientation_dispatcher_; | 1327 DeviceOrientationDispatcher* device_orientation_dispatcher_; |
| 1322 | 1328 |
| 1323 // PrintWebViewHelper handles printing. Weak pointer since it implements | 1329 // PrintWebViewHelper handles printing. Weak pointer since it implements |
| 1324 // RenderViewObserver interface. | 1330 // RenderViewObserver interface. |
| 1325 PrintWebViewHelper* print_helper_; | 1331 PrintWebViewHelper* print_helper_; |
| 1326 | 1332 |
| 1327 // Weak pointer since it implements RenderViewObserver interface. | 1333 // Weak pointer since it implements RenderViewObserver interface. |
| 1328 SearchBox* searchbox_; | 1334 SearchBox* searchbox_; |
| 1329 | 1335 |
| 1336 // spellcheck provider which is registered as a view observer. |
| 1337 // Note that RenderViewObserver subclasses like this will be deleted |
| 1338 // automatically during RenderView destruction. |
| 1339 SpellCheckProvider* spellcheck_provider_; |
| 1340 |
| 1330 scoped_refptr<AudioMessageFilter> audio_message_filter_; | 1341 scoped_refptr<AudioMessageFilter> audio_message_filter_; |
| 1331 | 1342 |
| 1332 // Handles accessibility requests into the renderer side, as well as | 1343 // Handles accessibility requests into the renderer side, as well as |
| 1333 // maintains the cache and other features of the accessibility tree. | 1344 // maintains the cache and other features of the accessibility tree. |
| 1334 scoped_ptr<WebKit::WebAccessibilityCache> accessibility_; | 1345 scoped_ptr<WebKit::WebAccessibilityCache> accessibility_; |
| 1335 | 1346 |
| 1336 // Collect renderer accessibility notifications until they are ready to be | 1347 // Collect renderer accessibility notifications until they are ready to be |
| 1337 // sent to the browser. | 1348 // sent to the browser. |
| 1338 std::vector<RendererAccessibilityNotification> | 1349 std::vector<RendererAccessibilityNotification> |
| 1339 pending_accessibility_notifications_; | 1350 pending_accessibility_notifications_; |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1428 // bunch of stuff, you should probably create a helper class and put your | 1439 // bunch of stuff, you should probably create a helper class and put your |
| 1429 // data and methods on that to avoid bloating RenderView more. You can use | 1440 // data and methods on that to avoid bloating RenderView more. You can use |
| 1430 // the Observer interface to filter IPC messages and receive frame change | 1441 // the Observer interface to filter IPC messages and receive frame change |
| 1431 // notifications. | 1442 // notifications. |
| 1432 // --------------------------------------------------------------------------- | 1443 // --------------------------------------------------------------------------- |
| 1433 | 1444 |
| 1434 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1445 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 1435 }; | 1446 }; |
| 1436 | 1447 |
| 1437 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 1448 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |