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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2010 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 #ifndef CHROME_BROWSER_COCOA_LOCATION_BAR_EV_BUBBLE_DECORATION_H_
6 #define CHROME_BROWSER_COCOA_LOCATION_BAR_EV_BUBBLE_DECORATION_H_
7
8 #import <Cocoa/Cocoa.h>
9
10 #include "chrome/browser/cocoa/location_bar/bubble_decoration.h"
11
12 // Draws the "Extended Validation SSL" bubble. This will be a lock
13 // icon plus a label from the certification, and will replace the
14 // location icon for URLs which have an EV cert. The |location_icon|
15 // is used to fulfill drag-related calls.
16
17 // TODO(shess): Refactor to pull the |location_icon| functionality out
18 // into a distinct class like views |ClickHandler|.
19 // http://crbug.com/48866
20
21 class LocationIconDecoration;
22
23 class EVBubbleDecoration : public BubbleDecoration {
24 public:
25 EVBubbleDecoration(LocationIconDecoration* location_icon, NSFont* font);
26
27 // Implement |LocationBarDecoration|.
28 virtual bool IsDraggable();
29 virtual NSPasteboard* GetDragPasteboard();
30 virtual NSImage* GetDragImage();
31 virtual bool OnMousePressed(NSRect frame);
32
33 private:
34 LocationIconDecoration* location_icon_; // weak, owned by location bar.
35
36 DISALLOW_COPY_AND_ASSIGN(EVBubbleDecoration);
37 };
38
39 #endif // CHROME_BROWSER_COCOA_LOCATION_BAR_EV_BUBBLE_DECORATION_H_
OLDNEW
« 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