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

Unified Diff: content/shell/renderer/test_runner/web_test_proxy.h

Issue 280953002: Content side of languagechange event fired on accept languages changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change accept languages default to empty string for tests Created 6 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 side-by-side diff with in-line comments
Download patch
Index: content/shell/renderer/test_runner/web_test_proxy.h
diff --git a/content/shell/renderer/test_runner/web_test_proxy.h b/content/shell/renderer/test_runner/web_test_proxy.h
index 12b097f596413ed188aa4ca6797cb5c4bdc444b2..583264e2c315a2b6bc315e4f0d2986b56351e421 100644
--- a/content/shell/renderer/test_runner/web_test_proxy.h
+++ b/content/shell/renderer/test_runner/web_test_proxy.h
@@ -134,6 +134,8 @@ class WebTestProxyBase : public blink::WebCompositeAndReadbackAsyncCallback {
// WebCompositeAndReadbackAsyncCallback implementation.
virtual void didCompositeAndReadback(const SkBitmap& bitmap);
+ void SetAcceptLanguages(const std::string& accept_languages);
+
protected:
WebTestProxyBase();
~WebTestProxyBase();
@@ -211,6 +213,8 @@ class WebTestProxyBase : public blink::WebCompositeAndReadbackAsyncCallback {
blink::WebDOMMessageEvent);
void ResetInputMethod();
+ blink::WebString acceptLanguages();
+
private:
template <class, typename, typename>
friend class WebFrameTestProxy;
@@ -241,6 +245,8 @@ class WebTestProxyBase : public blink::WebCompositeAndReadbackAsyncCallback {
scoped_ptr<blink::WebMIDIClientMock> m_midiClient;
scoped_ptr<MockWebSpeechRecognizer> m_speechRecognizer;
+ std::string accept_languages_;
+
private:
DISALLOW_COPY_AND_ASSIGN(WebTestProxyBase);
};
@@ -357,6 +363,9 @@ class WebTestProxy : public Base, public WebTestProxyBase {
virtual void postSpellCheckEvent(const blink::WebString& eventName) {
WebTestProxyBase::PostSpellCheckEvent(eventName);
}
+ virtual blink::WebString acceptLanguages() {
+ return WebTestProxyBase::acceptLanguages();
+ }
private:
DISALLOW_COPY_AND_ASSIGN(WebTestProxy);
« no previous file with comments | « content/shell/renderer/test_runner/test_runner.cc ('k') | content/shell/renderer/test_runner/web_test_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698