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

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

Issue 10384128: Quote WebPreferences in namespace webkit_glue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright 2012 Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « webkit/tools/test_shell/test_webview_delegate.h ('k') | webkit/tools/test_shell/webview_host.h » ('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) 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 // This file contains the implementation of TestWebViewDelegate, which serves 5 // This file contains the implementation of TestWebViewDelegate, which serves
6 // as the WebViewDelegate for the TestShellWebHost. The host is expected to 6 // as the WebViewDelegate for the TestShellWebHost. The host is expected to
7 // have initialized a MessageLoop before these methods are called. 7 // have initialized a MessageLoop before these methods are called.
8 8
9 #include "webkit/tools/test_shell/test_webview_delegate.h" 9 #include "webkit/tools/test_shell/test_webview_delegate.h"
10 10
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 using WebKit::WebTextDirection; 121 using WebKit::WebTextDirection;
122 using WebKit::WebURL; 122 using WebKit::WebURL;
123 using WebKit::WebURLError; 123 using WebKit::WebURLError;
124 using WebKit::WebURLRequest; 124 using WebKit::WebURLRequest;
125 using WebKit::WebURLResponse; 125 using WebKit::WebURLResponse;
126 using WebKit::WebWidget; 126 using WebKit::WebWidget;
127 using WebKit::WebWindowFeatures; 127 using WebKit::WebWindowFeatures;
128 using WebKit::WebWorker; 128 using WebKit::WebWorker;
129 using WebKit::WebVector; 129 using WebKit::WebVector;
130 using WebKit::WebView; 130 using WebKit::WebView;
131 using webkit_glue::WebPreferences;
131 132
132 namespace { 133 namespace {
133 134
134 // WebNavigationType debugging strings taken from PolicyDelegate.mm. 135 // WebNavigationType debugging strings taken from PolicyDelegate.mm.
135 const char* kLinkClickedString = "link clicked"; 136 const char* kLinkClickedString = "link clicked";
136 const char* kFormSubmittedString = "form submitted"; 137 const char* kFormSubmittedString = "form submitted";
137 const char* kBackForwardString = "back/forward"; 138 const char* kBackForwardString = "back/forward";
138 const char* kReloadString = "reload"; 139 const char* kReloadString = "reload";
139 const char* kFormResubmittedString = "form resubmitted"; 140 const char* kFormResubmittedString = "form resubmitted";
140 const char* kOtherString = "other"; 141 const char* kOtherString = "other";
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after
1150 } 1151 }
1151 1152
1152 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { 1153 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) {
1153 fake_rect_ = rect; 1154 fake_rect_ = rect;
1154 using_fake_rect_ = true; 1155 using_fake_rect_ = true;
1155 } 1156 }
1156 1157
1157 WebRect TestWebViewDelegate::fake_window_rect() { 1158 WebRect TestWebViewDelegate::fake_window_rect() {
1158 return fake_rect_; 1159 return fake_rect_;
1159 } 1160 }
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_webview_delegate.h ('k') | webkit/tools/test_shell/webview_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698