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

Side by Side Diff: webkit/tools/test_shell/test_webview_delegate.h

Issue 3466019: Adds speech input mock methods to TestShell. (Closed)
Patch Set: Created 10 years, 2 months 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
« no previous file with comments | « webkit/tools/test_shell/test_shell.cc ('k') | webkit/tools/test_shell/test_webview_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // TestWebViewDelegate class: 5 // TestWebViewDelegate class:
6 // This class implements the WebViewDelegate methods for the test shell. One 6 // This class implements the WebViewDelegate methods for the test shell. One
7 // instance is owned by each TestShell. 7 // instance is owned by each TestShell.
8 8
9 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ 9 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_
10 #define WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ 10 #define WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 #include "webkit/tools/test_shell/test_navigation_controller.h" 45 #include "webkit/tools/test_shell/test_navigation_controller.h"
46 46
47 struct WebPreferences; 47 struct WebPreferences;
48 class GURL; 48 class GURL;
49 class TestGeolocationService; 49 class TestGeolocationService;
50 class TestShell; 50 class TestShell;
51 class WebWidgetHost; 51 class WebWidgetHost;
52 52
53 namespace WebKit { 53 namespace WebKit {
54 class WebDeviceOrientationClient; 54 class WebDeviceOrientationClient;
55 class WebSpeechInputController;
56 class WebSpeechInputListener;
55 class WebStorageNamespace; 57 class WebStorageNamespace;
56 struct WebWindowFeatures; 58 struct WebWindowFeatures;
57 } 59 }
58 60
59 class TestWebViewDelegate : public WebKit::WebViewClient, 61 class TestWebViewDelegate : public WebKit::WebViewClient,
60 public WebKit::WebFrameClient, 62 public WebKit::WebFrameClient,
61 public webkit_glue::WebPluginPageDelegate, 63 public webkit_glue::WebPluginPageDelegate,
62 public base::SupportsWeakPtr<TestWebViewDelegate> { 64 public base::SupportsWeakPtr<TestWebViewDelegate> {
63 public: 65 public:
64 struct CapturedContextMenuEvent { 66 struct CapturedContextMenuEvent {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 const WebKit::WebDragData& data, WebKit::WebDragOperationsMask mask, 136 const WebKit::WebDragData& data, WebKit::WebDragOperationsMask mask,
135 const WebKit::WebImage& image, const WebKit::WebPoint& offset); 137 const WebKit::WebImage& image, const WebKit::WebPoint& offset);
136 virtual void navigateBackForwardSoon(int offset); 138 virtual void navigateBackForwardSoon(int offset);
137 virtual int historyBackListCount(); 139 virtual int historyBackListCount();
138 virtual int historyForwardListCount(); 140 virtual int historyForwardListCount();
139 virtual void focusAccessibilityObject( 141 virtual void focusAccessibilityObject(
140 const WebKit::WebAccessibilityObject& object); 142 const WebKit::WebAccessibilityObject& object);
141 virtual WebKit::WebNotificationPresenter* notificationPresenter(); 143 virtual WebKit::WebNotificationPresenter* notificationPresenter();
142 virtual WebKit::WebGeolocationService* geolocationService(); 144 virtual WebKit::WebGeolocationService* geolocationService();
143 virtual WebKit::WebDeviceOrientationClient* deviceOrientationClient(); 145 virtual WebKit::WebDeviceOrientationClient* deviceOrientationClient();
146 virtual WebKit::WebSpeechInputController* speechInputController(
147 WebKit::WebSpeechInputListener*);
144 148
145 // WebKit::WebWidgetClient 149 // WebKit::WebWidgetClient
146 virtual void didInvalidateRect(const WebKit::WebRect& rect); 150 virtual void didInvalidateRect(const WebKit::WebRect& rect);
147 virtual void didScrollRect(int dx, int dy, 151 virtual void didScrollRect(int dx, int dy,
148 const WebKit::WebRect& clip_rect); 152 const WebKit::WebRect& clip_rect);
149 virtual void didFocus(); 153 virtual void didFocus();
150 virtual void didBlur(); 154 virtual void didBlur();
151 virtual void didChangeCursor(const WebKit::WebCursorInfo& cursor); 155 virtual void didChangeCursor(const WebKit::WebCursorInfo& cursor);
152 virtual void closeWidgetSoon(); 156 virtual void closeWidgetSoon();
153 virtual void show(WebKit::WebNavigationPolicy policy); 157 virtual void show(WebKit::WebNavigationPolicy policy);
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 445
442 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). 446 // The mock spellchecker used in TestWebViewDelegate::spellCheck().
443 MockSpellCheck mock_spellcheck_; 447 MockSpellCheck mock_spellcheck_;
444 448
445 scoped_ptr<TestGeolocationService> test_geolocation_service_; 449 scoped_ptr<TestGeolocationService> test_geolocation_service_;
446 450
447 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); 451 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate);
448 }; 452 };
449 453
450 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ 454 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_shell.cc ('k') | webkit/tools/test_shell/test_webview_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698