| OLD | NEW |
| (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 |
| OLD | NEW |