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

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

Issue 10885024: Integrate Chrome To Mobile with Action Box UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nil/NULL checks in ChromeToMobileBubbleController. Created 8 years, 4 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/chrome_to_mobile_decoration.h
diff --git a/chrome/browser/ui/cocoa/location_bar/chrome_to_mobile_decoration.h b/chrome/browser/ui/cocoa/location_bar/chrome_to_mobile_decoration.h
deleted file mode 100644
index ca79c7fc6d3008544d7f0d54324f38d2e14bed65..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/cocoa/location_bar/chrome_to_mobile_decoration.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) 2012 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_CHROME_TO_MOBILE_DECORATION_H_
-#define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_CHROME_TO_MOBILE_DECORATION_H_
-
-#import <Cocoa/Cocoa.h>
-
-#include "chrome/browser/ui/cocoa/location_bar/image_decoration.h"
-
-class CommandUpdater;
-class Profile;
-
-// Chrome To Mobile icon on the right side of the field.
-class ChromeToMobileDecoration : public ImageDecoration {
- public:
- ChromeToMobileDecoration(Profile* profile, CommandUpdater* command_updater);
- virtual ~ChromeToMobileDecoration();
-
- // Get the point where the bubble should point within the decoration's frame.
- NSPoint GetBubblePointInFrame(NSRect frame);
-
- // Update the icon to reflect the lit or unlit state.
- void SetLit(bool lit);
-
- // Implement |LocationBarDecoration|.
- virtual bool AcceptsMousePress() OVERRIDE;
- virtual bool OnMousePressed(NSRect frame) OVERRIDE;
- virtual NSString* GetToolTip() OVERRIDE;
-
- private:
- Profile* profile_;
-
- // Used for showing the Chrome To Mobile bubble.
- CommandUpdater* command_updater_; // Weak, owned by Browser.
-
- // The string to show for a tooltip.
- scoped_nsobject<NSString> tooltip_;
-
- DISALLOW_COPY_AND_ASSIGN(ChromeToMobileDecoration);
-};
-
-#endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_CHROME_TO_MOBILE_DECORATION_H_

Powered by Google App Engine
This is Rietveld 408576698