| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_UI_COCOA_LOCATION_BAR_ORIGIN_CHIP_DECORATION_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_ORIGIN_CHIP_DECORATION_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_ORIGIN_CHIP_DECORATION_H_ | 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_ORIGIN_CHIP_DECORATION_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| 11 #include "chrome/browser/extensions/extension_icon_image.h" | |
| 12 #include "chrome/browser/safe_browsing/ui_manager.h" | 11 #include "chrome/browser/safe_browsing/ui_manager.h" |
| 13 #include "chrome/browser/ui/cocoa/location_bar/button_decoration.h" | 12 #include "chrome/browser/ui/cocoa/location_bar/button_decoration.h" |
| 14 #include "chrome/browser/ui/toolbar/origin_chip_info.h" | 13 #include "chrome/browser/ui/toolbar/origin_chip_info.h" |
| 14 #include "extensions/browser/extension_icon_image.h" |
| 15 | 15 |
| 16 class LocationBarViewMac; | 16 class LocationBarViewMac; |
| 17 class LocationIconDecoration; | 17 class LocationIconDecoration; |
| 18 | 18 |
| 19 namespace content { | 19 namespace content { |
| 20 class WebContents; | 20 class WebContents; |
| 21 } | 21 } |
| 22 | 22 |
| 23 // Origin chip button, which is placed leading the omnibox and contains the | 23 // Origin chip button, which is placed leading the omnibox and contains the |
| 24 // current site's host. Clicking the chip reveals the page's URL, and clicking | 24 // current site's host. Clicking the chip reveals the page's URL, and clicking |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // The location icon decoration. Weak. | 78 // The location icon decoration. Weak. |
| 79 LocationIconDecoration* location_icon_; | 79 LocationIconDecoration* location_icon_; |
| 80 | 80 |
| 81 // The control view that owns this. Weak. | 81 // The control view that owns this. Weak. |
| 82 LocationBarViewMac* owner_; | 82 LocationBarViewMac* owner_; |
| 83 | 83 |
| 84 DISALLOW_COPY_AND_ASSIGN(OriginChipDecoration); | 84 DISALLOW_COPY_AND_ASSIGN(OriginChipDecoration); |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_ORIGIN_CHIP_DECORATION_H_ | 87 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_ORIGIN_CHIP_DECORATION_H_ |
| OLD | NEW |