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

Side by Side Diff: chrome/browser/ui/cocoa/location_bar/translate_decoration.h

Issue 2644903004: Move around more vector icons. (Closed)
Patch Set: fix comment Created 3 years, 11 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
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_TRANSLATE_DECORATION_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_TRANSLATE_DECORATION_H_
6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_TRANSLATE_DECORATION_H_ 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_TRANSLATE_DECORATION_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 14 matching lines...) Expand all
25 void SetLit(bool on, bool locationBarIsDark); 25 void SetLit(bool on, bool locationBarIsDark);
26 26
27 // Implement |LocationBarDecoration| 27 // Implement |LocationBarDecoration|
28 bool AcceptsMousePress() override; 28 bool AcceptsMousePress() override;
29 bool OnMousePressed(NSRect frame, NSPoint location) override; 29 bool OnMousePressed(NSRect frame, NSPoint location) override;
30 NSString* GetToolTip() override; 30 NSString* GetToolTip() override;
31 NSPoint GetBubblePointInFrame(NSRect frame) override; 31 NSPoint GetBubblePointInFrame(NSRect frame) override;
32 32
33 protected: 33 protected:
34 // Overridden from LocationBarDecoration: 34 // Overridden from LocationBarDecoration:
35 gfx::VectorIconId GetMaterialVectorIconId() const override; 35 const gfx::VectorIcon* GetMaterialVectorIcon() const override;
36 36
37 private: 37 private:
38 // For showing the translate bubble up. 38 // For showing the translate bubble up.
39 CommandUpdater* command_updater_; // Weak, owned by Browser. 39 CommandUpdater* command_updater_; // Weak, owned by Browser.
40 40
41 DISALLOW_COPY_AND_ASSIGN(TranslateDecoration); 41 DISALLOW_COPY_AND_ASSIGN(TranslateDecoration);
42 }; 42 };
43 43
44 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_TRANSLATE_DECORATION_H_ 44 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_TRANSLATE_DECORATION_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/location_bar/star_decoration.mm ('k') | chrome/browser/ui/cocoa/location_bar/translate_decoration.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698