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

Side by Side Diff: content/public/test/test_web_ui.cc

Issue 2468673003: [Extensions] Remove ExtensionWebUI (Closed)
Patch Set: nit Created 4 years, 1 month 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 | « content/public/test/test_web_ui.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "base/logging.h" 5 #include "base/logging.h"
6 #include "content/public/browser/web_ui_message_handler.h" 6 #include "content/public/browser/web_ui_message_handler.h"
7 #include "content/public/test/test_web_ui.h" 7 #include "content/public/test/test_web_ui.h"
8 8
9 namespace content { 9 namespace content {
10 10
(...skipping 17 matching lines...) Expand all
28 } 28 }
29 29
30 float TestWebUI::GetDeviceScaleFactor() const { 30 float TestWebUI::GetDeviceScaleFactor() const {
31 return 1.0f; 31 return 1.0f;
32 } 32 }
33 33
34 const base::string16& TestWebUI::GetOverriddenTitle() const { 34 const base::string16& TestWebUI::GetOverriddenTitle() const {
35 return temp_string_; 35 return temp_string_;
36 } 36 }
37 37
38 ui::PageTransition TestWebUI::GetLinkTransitionType() const {
39 return ui::PAGE_TRANSITION_LINK;
40 }
41
42 int TestWebUI::GetBindings() const { 38 int TestWebUI::GetBindings() const {
43 return 0; 39 return 0;
44 } 40 }
45 41
46 bool TestWebUI::HasRenderFrame() { 42 bool TestWebUI::HasRenderFrame() {
47 return false; 43 return false;
48 } 44 }
49 45
50 void TestWebUI::AddMessageHandler(WebUIMessageHandler* handler) { 46 void TestWebUI::AddMessageHandler(WebUIMessageHandler* handler) {
51 handlers_.push_back(handler); 47 handlers_.push_back(handler);
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 118
123 void TestWebUI::CallData::TakeAsArg3(std::unique_ptr<base::Value> arg) { 119 void TestWebUI::CallData::TakeAsArg3(std::unique_ptr<base::Value> arg) {
124 arg3_ = std::move(arg); 120 arg3_ = std::move(arg);
125 } 121 }
126 122
127 void TestWebUI::CallData::TakeAsArg4(std::unique_ptr<base::Value> arg) { 123 void TestWebUI::CallData::TakeAsArg4(std::unique_ptr<base::Value> arg) {
128 arg4_ = std::move(arg); 124 arg4_ = std::move(arg);
129 } 125 }
130 126
131 } // namespace content 127 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/test_web_ui.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698