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

Side by Side Diff: ios/chrome/browser/ui/toolbar/test_toolbar_model_ios.mm

Issue 2588733002: Upstream Chrome on iOS source code [9/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 2012 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 #include "ios/chrome/browser/ui/toolbar/test_toolbar_model_ios.h"
6
7 #include "components/toolbar/toolbar_model_impl.h"
8 #import "ios/chrome/browser/tabs/tab.h"
9
10 TestToolbarModelIOS::TestToolbarModelIOS()
11 : ToolbarModelIOS(),
12 is_loading_(FALSE),
13 load_progress_fraction_(0.0),
14 can_go_back_(FALSE),
15 can_go_forward_(FALSE),
16 is_current_tab_native_page_(FALSE),
17 is_current_tab_bookmarked_(FALSE) {
18 test_toolbar_model_.reset(new TestToolbarModel());
19 }
20
21 TestToolbarModelIOS::~TestToolbarModelIOS() {}
22
23 ToolbarModel* TestToolbarModelIOS::GetToolbarModel() {
24 return test_toolbar_model_.get();
25 }
26
27 bool TestToolbarModelIOS::IsLoading() {
28 return is_loading_;
29 }
30
31 CGFloat TestToolbarModelIOS::GetLoadProgressFraction() {
32 return load_progress_fraction_;
33 }
34
35 bool TestToolbarModelIOS::CanGoBack() {
36 return can_go_back_;
37 }
38
39 bool TestToolbarModelIOS::CanGoForward() {
40 return can_go_forward_;
41 }
42
43 bool TestToolbarModelIOS::IsCurrentTabNativePage() {
44 return is_current_tab_native_page_;
45 }
46
47 bool TestToolbarModelIOS::IsCurrentTabBookmarked() {
48 return is_current_tab_bookmarked_;
49 }
50
51 bool TestToolbarModelIOS::IsCurrentTabBookmarkedByUser() {
52 return is_current_tab_bookmarked_;
53 }
54
55 bool TestToolbarModelIOS::ShouldDisplayHintText() {
56 return false;
57 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/toolbar/test_toolbar_model_ios.h ('k') | ios/chrome/browser/ui/toolbar/toolbar_button_tints.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698