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

Side by Side Diff: ios/chrome/browser/ui/toolbar/toolbar_model_ios.h

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 #ifndef IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_IOS_H_
6 #define IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_IOS_H_
7
8 #import <UIKit/UIKit.h>
9
10 #include "components/toolbar/toolbar_model.h"
11
12 class ToolbarModelIOS {
13 public:
14 virtual ~ToolbarModelIOS() {}
15
16 // Returns the |ToolbarModel| contained by this instance.
17 virtual ToolbarModel* GetToolbarModel() = 0;
18
19 // Returns true if the current tab is currently loading.
20 virtual bool IsLoading() = 0;
21
22 // Returns the fraction of the current tab's page load that has completed as a
23 // number between 0.0 and 1.0.
24 virtual CGFloat GetLoadProgressFraction() = 0;
25
26 // Returns true if the current tab can go back in history.
27 virtual bool CanGoBack() = 0;
28
29 // Returns true if the current tab can go forward in history.
30 virtual bool CanGoForward() = 0;
31
32 // Returns true if the current tab is a native page.
33 virtual bool IsCurrentTabNativePage() = 0;
34
35 // Returns true if the current tab's URL is bookmarked, either by the user or
36 // by a managed bookmarks.
37 virtual bool IsCurrentTabBookmarked() = 0;
38
39 // Returns true if the current tab's URL is bookmarked by the user; returns
40 // false if the URL is bookmarked only in managed bookmarks.
41 virtual bool IsCurrentTabBookmarkedByUser() = 0;
42
43 // Returns true if the current toolbar should display the hint text.
44 virtual bool ShouldDisplayHintText() = 0;
45
46 protected:
47 ToolbarModelIOS() {}
48 };
49
50 #endif // IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_IOS_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/toolbar/toolbar_model_impl_ios_unittest.mm ('k') | ios/chrome/browser/ui/toolbar/toolbar_owner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698