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

Side by Side Diff: ui/web_dialogs/test/test_web_dialog_delegate.cc

Issue 16049004: ui/web_dialogs: Use base::string16 now that string16 was moved into base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 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 | « ui/web_dialogs/test/test_web_dialog_delegate.h ('k') | ui/web_dialogs/web_dialog_delegate.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 #include "ui/web_dialogs/test/test_web_dialog_delegate.h" 5 #include "ui/web_dialogs/test/test_web_dialog_delegate.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 8
9 using content::WebContents; 9 using content::WebContents;
10 using content::WebUIMessageHandler; 10 using content::WebUIMessageHandler;
11 11
12 namespace ui { 12 namespace ui {
13 namespace test { 13 namespace test {
14 14
15 TestWebDialogDelegate::TestWebDialogDelegate(const GURL& url) 15 TestWebDialogDelegate::TestWebDialogDelegate(const GURL& url)
16 : url_(url), 16 : url_(url),
17 size_(400, 400) { 17 size_(400, 400) {
18 } 18 }
19 19
20 TestWebDialogDelegate::~TestWebDialogDelegate() { 20 TestWebDialogDelegate::~TestWebDialogDelegate() {
21 } 21 }
22 22
23 ModalType TestWebDialogDelegate::GetDialogModalType() const { 23 ModalType TestWebDialogDelegate::GetDialogModalType() const {
24 return MODAL_TYPE_WINDOW; 24 return MODAL_TYPE_WINDOW;
25 } 25 }
26 26
27 string16 TestWebDialogDelegate::GetDialogTitle() const { 27 base::string16 TestWebDialogDelegate::GetDialogTitle() const {
28 return UTF8ToUTF16("Test"); 28 return UTF8ToUTF16("Test");
29 } 29 }
30 30
31 GURL TestWebDialogDelegate::GetDialogContentURL() const { 31 GURL TestWebDialogDelegate::GetDialogContentURL() const {
32 return url_; 32 return url_;
33 } 33 }
34 34
35 void TestWebDialogDelegate::GetWebUIMessageHandlers( 35 void TestWebDialogDelegate::GetWebUIMessageHandlers(
36 std::vector<WebUIMessageHandler*>* handlers) const { 36 std::vector<WebUIMessageHandler*>* handlers) const {
37 } 37 }
(...skipping 14 matching lines...) Expand all
52 if (out_close_dialog) 52 if (out_close_dialog)
53 *out_close_dialog = true; 53 *out_close_dialog = true;
54 } 54 }
55 55
56 bool TestWebDialogDelegate::ShouldShowDialogTitle() const { 56 bool TestWebDialogDelegate::ShouldShowDialogTitle() const {
57 return true; 57 return true;
58 } 58 }
59 59
60 } // namespace test 60 } // namespace test
61 } // namespace ui 61 } // namespace ui
OLDNEW
« no previous file with comments | « ui/web_dialogs/test/test_web_dialog_delegate.h ('k') | ui/web_dialogs/web_dialog_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698