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

Unified Diff: chrome/browser/ui/cocoa/location_bar/mock_toolbar_model.mm

Issue 12315069: Mac: Update zoom bubble UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/location_bar/mock_toolbar_model.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/mock_toolbar_model.mm b/chrome/browser/ui/cocoa/location_bar/mock_toolbar_model.mm
new file mode 100644
index 0000000000000000000000000000000000000000..9ec14330709ad05674685ed1a324859fe49d80ee
--- /dev/null
+++ b/chrome/browser/ui/cocoa/location_bar/mock_toolbar_model.mm
@@ -0,0 +1,57 @@
+// Copyright 2013 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 "chrome/browser/ui/cocoa/location_bar/mock_toolbar_model.h"
+
+namespace chrome {
+namespace testing {
+
+MockToolbarModel::MockToolbarModel()
+ : ToolbarModel(),
+ input_in_progress_(false),
+ would_replace_search_url_with_search_terms_(false) {
+}
+
+MockToolbarModel::~MockToolbarModel() {
+}
+
+string16 MockToolbarModel::GetText(
+ bool display_search_urls_as_search_terms) const {
+ return string16();
+}
+
+GURL MockToolbarModel::GetURL() const {
+ return GURL();
+}
+
+bool MockToolbarModel::WouldReplaceSearchURLWithSearchTerms() const {
+ return would_replace_search_url_with_search_terms_;
+}
+
+MockToolbarModel::SecurityLevel MockToolbarModel::GetSecurityLevel() const {
+ return NONE;
+}
+
+int MockToolbarModel::GetIcon() const {
+ return 0;
+}
+
+string16 MockToolbarModel::GetEVCertName() const {
+ return string16();
+}
+
+bool MockToolbarModel::ShouldDisplayURL() const {
+ return false;
+}
+
+void MockToolbarModel::SetInputInProgress(bool value) {
+ input_in_progress_ = value;
+}
+
+bool MockToolbarModel::GetInputInProgress() const {
+ return input_in_progress_;
+}
+
+} // namespace testing
+} // namespace chrome
« no previous file with comments | « chrome/browser/ui/cocoa/location_bar/mock_toolbar_model.h ('k') | chrome/browser/ui/cocoa/location_bar/zoom_decoration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698