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

Unified Diff: chrome/browser/ui/cocoa/location_bar/ev_bubble_decoration.h

Issue 2119033002: [Material][Mac] Implement Omnibox Verbose State Chips (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/location_bar/ev_bubble_decoration.h
diff --git a/chrome/browser/ui/cocoa/location_bar/ev_bubble_decoration.h b/chrome/browser/ui/cocoa/location_bar/ev_bubble_decoration.h
deleted file mode 100644
index 51be0a1d6afae00dcd96bc06ff416b7bc13c405f..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/cocoa/location_bar/ev_bubble_decoration.h
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_EV_BUBBLE_DECORATION_H_
-#define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_EV_BUBBLE_DECORATION_H_
-
-#import <Cocoa/Cocoa.h>
-
-#include "base/macros.h"
-#include "chrome/browser/ui/cocoa/location_bar/bubble_decoration.h"
-
-// Draws the "Extended Validation SSL" bubble. This will be a lock
-// icon plus a label from the certification, and will replace the
-// location icon for URLs which have an EV cert. The |location_icon|
-// is used to fulfill drag-related calls.
-
-// TODO(shess): Refactor to pull the |location_icon| functionality out
-// into a distinct class like views |ClickHandler|.
-// http://crbug.com/48866
-
-class LocationIconDecoration;
-
-class EVBubbleDecoration : public BubbleDecoration {
- public:
- explicit EVBubbleDecoration(LocationIconDecoration* location_icon);
- ~EVBubbleDecoration() override;
-
- // Return the color used to draw the EvBubbleDecoration background in MD.
- NSColor* GetBackgroundBorderColor() override;
-
- // |GetWidthForSpace()| will set |full_label| as the label, if it
- // fits, else it will set an elided version.
- void SetFullLabel(NSString* full_label);
-
- // Implement |LocationBarDecoration|.
- CGFloat GetWidthForSpace(CGFloat width) override;
-
- // Perform custom drawing for Material Design.
- void DrawWithBackgroundInFrame(NSRect background_frame,
- NSRect frame,
- NSView* control_view) override;
-
- bool IsDraggable() override;
- NSPasteboard* GetDragPasteboard() override;
- NSImage* GetDragImage() override;
- NSRect GetDragImageFrame(NSRect frame) override;
- bool OnMousePressed(NSRect frame, NSPoint location) override;
- bool AcceptsMousePress() override;
- NSPoint GetBubblePointInFrame(NSRect frame) override;
-
- // Implement |BubbleDecoration|.
- ui::NinePartImageIds GetBubbleImageIds() override;
-
- protected:
- NSColor* GetDarkModeTextColor() override;
-
- private:
- // The real label. BubbleDecoration's label may be elided.
- base::scoped_nsobject<NSString> full_label_;
-
- LocationIconDecoration* location_icon_; // weak, owned by location bar.
-
- DISALLOW_COPY_AND_ASSIGN(EVBubbleDecoration);
-};
-
-#endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_EV_BUBBLE_DECORATION_H_

Powered by Google App Engine
This is Rietveld 408576698