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

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

Issue 2960903002: VR: Use ToolbarModel to drive VR URL bar state. (Closed)
Patch Set: Update toolbar build file to include vector icons for Android. 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/android/vr_shell/toolbar_state.h"
6
7 namespace vr_shell {
8
9 ToolbarState::ToolbarState()
10 : gurl(GURL()),
11 security_level(security_state::SecurityLevel::NONE),
12 vector_icon(nullptr),
13 should_display_url(true) {}
14
15 ToolbarState::ToolbarState(const GURL& url,
16 security_state::SecurityLevel level,
17 const gfx::VectorIcon* icon,
18 base::string16 verbose_text,
19 bool display_url)
20 : gurl(url),
21 security_level(level),
22 vector_icon(icon),
23 secure_verbose_text(verbose_text),
24 should_display_url(display_url) {}
25
26 bool ToolbarState::operator==(const ToolbarState& other) const {
27 return (gurl == other.gurl && security_level == other.security_level &&
28 vector_icon == other.vector_icon &&
29 should_display_url == other.should_display_url &&
30 secure_verbose_text == other.secure_verbose_text);
31 }
32
33 bool ToolbarState::operator!=(const ToolbarState& other) const {
34 return !(*this == other);
35 }
36
37 } // namespace vr_shell
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/toolbar_state.h ('k') | chrome/browser/android/vr_shell/ui_elements/transient_url_bar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698