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

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

Issue 2805070: [Mac] First part of Omnibox decoration refactor. Enable ev bubble. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: comment clarification Created 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/cocoa/location_bar/ev_bubble_decoration.h
diff --git a/chrome/browser/cocoa/location_bar/ev_bubble_decoration.h b/chrome/browser/cocoa/location_bar/ev_bubble_decoration.h
new file mode 100644
index 0000000000000000000000000000000000000000..ea1697a1a414e31ee654adeb4826aa57a060d4e7
--- /dev/null
+++ b/chrome/browser/cocoa/location_bar/ev_bubble_decoration.h
@@ -0,0 +1,39 @@
+// Copyright (c) 2010 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_COCOA_LOCATION_BAR_EV_BUBBLE_DECORATION_H_
+#define CHROME_BROWSER_COCOA_LOCATION_BAR_EV_BUBBLE_DECORATION_H_
+
+#import <Cocoa/Cocoa.h>
+
+#include "chrome/browser/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:
+ EVBubbleDecoration(LocationIconDecoration* location_icon, NSFont* font);
+
+ // Implement |LocationBarDecoration|.
+ virtual bool IsDraggable();
+ virtual NSPasteboard* GetDragPasteboard();
+ virtual NSImage* GetDragImage();
+ virtual bool OnMousePressed(NSRect frame);
+
+ private:
+ LocationIconDecoration* location_icon_; // weak, owned by location bar.
+
+ DISALLOW_COPY_AND_ASSIGN(EVBubbleDecoration);
+};
+
+#endif // CHROME_BROWSER_COCOA_LOCATION_BAR_EV_BUBBLE_DECORATION_H_
« no previous file with comments | « chrome/browser/cocoa/location_bar/bubble_decoration.mm ('k') | chrome/browser/cocoa/location_bar/ev_bubble_decoration.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698