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

Unified Diff: chrome/browser/ui/cocoa/omnibox_decoration_bubble_controller.mm

Issue 2542173002: [Mac] Omnibox icons active states (Closed)
Patch Set: Created 4 years 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/omnibox_decoration_bubble_controller.mm
diff --git a/chrome/browser/ui/cocoa/omnibox_decoration_bubble_controller.mm b/chrome/browser/ui/cocoa/omnibox_decoration_bubble_controller.mm
new file mode 100644
index 0000000000000000000000000000000000000000..e9853e3298fc5e272b202075591219361f0303ef
--- /dev/null
+++ b/chrome/browser/ui/cocoa/omnibox_decoration_bubble_controller.mm
@@ -0,0 +1,36 @@
+// Copyright 2016 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.
+
+#import "chrome/browser/ui/cocoa/omnibox_decoration_bubble_controller.h"
+
+#import <Cocoa/Cocoa.h>
+
+#import "chrome/browser/ui/cocoa/browser_window_controller.h"
+#import "chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h"
+
+// Base bubble controller class.
+@implementation OmniboxDecorationBubbleController
+
+- (void)showWindow:(id)sender {
+ LocationBarDecoration* decoration = [self decorationForBubble];
+ if (decoration)
+ decoration->SetActive(true);
+
+ [super showWindow:sender];
+}
+
+- (void)close {
+ LocationBarDecoration* decoration = [self decorationForBubble];
+ if (decoration)
+ decoration->SetActive(false);
+
+ [super close];
+}
+
+- (LocationBarDecoration*)decorationForBubble {
+ NOTREACHED();
+ return nullptr;
+}
+
+@end

Powered by Google App Engine
This is Rietveld 408576698