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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/toolbar/test_toolbar_model_ios.mm
diff --git a/ios/chrome/browser/ui/toolbar/test_toolbar_model_ios.mm b/ios/chrome/browser/ui/toolbar/test_toolbar_model_ios.mm
new file mode 100644
index 0000000000000000000000000000000000000000..b97831fa2fc47eccc3020724caa0b7ad94cb3e55
--- /dev/null
+++ b/ios/chrome/browser/ui/toolbar/test_toolbar_model_ios.mm
@@ -0,0 +1,57 @@
+// Copyright 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ios/chrome/browser/ui/toolbar/test_toolbar_model_ios.h"
+
+#include "components/toolbar/toolbar_model_impl.h"
+#import "ios/chrome/browser/tabs/tab.h"
+
+TestToolbarModelIOS::TestToolbarModelIOS()
+ : ToolbarModelIOS(),
+ is_loading_(FALSE),
+ load_progress_fraction_(0.0),
+ can_go_back_(FALSE),
+ can_go_forward_(FALSE),
+ is_current_tab_native_page_(FALSE),
+ is_current_tab_bookmarked_(FALSE) {
+ test_toolbar_model_.reset(new TestToolbarModel());
+}
+
+TestToolbarModelIOS::~TestToolbarModelIOS() {}
+
+ToolbarModel* TestToolbarModelIOS::GetToolbarModel() {
+ return test_toolbar_model_.get();
+}
+
+bool TestToolbarModelIOS::IsLoading() {
+ return is_loading_;
+}
+
+CGFloat TestToolbarModelIOS::GetLoadProgressFraction() {
+ return load_progress_fraction_;
+}
+
+bool TestToolbarModelIOS::CanGoBack() {
+ return can_go_back_;
+}
+
+bool TestToolbarModelIOS::CanGoForward() {
+ return can_go_forward_;
+}
+
+bool TestToolbarModelIOS::IsCurrentTabNativePage() {
+ return is_current_tab_native_page_;
+}
+
+bool TestToolbarModelIOS::IsCurrentTabBookmarked() {
+ return is_current_tab_bookmarked_;
+}
+
+bool TestToolbarModelIOS::IsCurrentTabBookmarkedByUser() {
+ return is_current_tab_bookmarked_;
+}
+
+bool TestToolbarModelIOS::ShouldDisplayHintText() {
+ return false;
+}
« 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