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

Side by Side Diff: ios/chrome/browser/ui/reader_mode/reader_mode_infobar_delegate.mm

Issue 2589583003: Upstream Chrome on iOS source code [7/11]. (Closed)
Patch Set: Created 4 years 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #import "ios/chrome/browser/ui/reader_mode/reader_mode_infobar_delegate.h"
6
7 #include "base/strings/utf_string_conversions.h"
8
9 ReaderModeInfoBarDelegate::ReaderModeInfoBarDelegate(
10 const base::Closure& callback)
11 : callback_(callback) {}
12
13 ReaderModeInfoBarDelegate::~ReaderModeInfoBarDelegate() {}
14
15 infobars::InfoBarDelegate::InfoBarIdentifier
16 ReaderModeInfoBarDelegate::GetIdentifier() const {
17 return READER_MODE_INFOBAR_DELEGATE_IOS;
18 }
19
20 base::string16 ReaderModeInfoBarDelegate::GetMessageText() const {
21 // TODO(noyau): Waiting for text to put here.
22 return base::ASCIIToUTF16("Open in reader mode");
23 }
24
25 bool ReaderModeInfoBarDelegate::Accept() {
26 callback_.Run();
27 return true;
28 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/reader_mode/reader_mode_infobar_delegate.h ('k') | ios/chrome/browser/ui/reader_mode/reader_mode_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698