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

Side by Side Diff: chrome/browser/android/vr_shell/toolbar_state.h

Issue 2965043003: ToolbarModel: Supply offline page status. (Closed)
Patch Set: And, ios-simulator. Created 3 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_TOOLBAR_STATE_H_ 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_TOOLBAR_STATE_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_TOOLBAR_STATE_H_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_TOOLBAR_STATE_H_
7 7
8 #include "components/security_state/core/security_state.h" 8 #include "components/security_state/core/security_state.h"
9 #include "url/gurl.h" 9 #include "url/gurl.h"
10 10
11 namespace gfx { 11 namespace gfx {
12 struct VectorIcon; 12 struct VectorIcon;
13 } 13 }
14 14
15 namespace vr_shell { 15 namespace vr_shell {
16 16
17 // Passes information obtained from ToolbarModel to the VR UI framework. 17 // Passes information obtained from ToolbarModel to the VR UI framework.
18 struct ToolbarState { 18 struct ToolbarState {
19 public: 19 public:
20 ToolbarState(); 20 ToolbarState();
21 ToolbarState(const GURL& url, 21 ToolbarState(const GURL& url,
22 security_state::SecurityLevel level, 22 security_state::SecurityLevel level,
23 const gfx::VectorIcon* icon, 23 const gfx::VectorIcon* icon,
24 base::string16 verbose_text, 24 base::string16 verbose_text,
25 bool display_url); 25 bool display_url,
26 bool offline);
27 ToolbarState(const ToolbarState& other);
26 28
27 bool operator==(const ToolbarState& other) const; 29 bool operator==(const ToolbarState& other) const;
28 bool operator!=(const ToolbarState& other) const; 30 bool operator!=(const ToolbarState& other) const;
29 31
30 GURL gurl; 32 GURL gurl;
31 security_state::SecurityLevel security_level; 33 security_state::SecurityLevel security_level;
32 const gfx::VectorIcon* vector_icon; 34 const gfx::VectorIcon* vector_icon;
33 base::string16 secure_verbose_text; 35 base::string16 secure_verbose_text;
34 bool should_display_url; 36 bool should_display_url;
37 bool offline_page;
35 }; 38 };
36 39
37 } // namespace vr_shell 40 } // namespace vr_shell
38 41
39 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_TOOLBAR_STATE_H_ 42 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_TOOLBAR_STATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/toolbar_helper.cc ('k') | chrome/browser/android/vr_shell/toolbar_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698