summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/location_bar_view_mac.h
diff options
context:
space:
mode:
authorshess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-07 05:18:09 +0000
committershess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-07 05:18:09 +0000
commit747e5512174b7c24d256f93f867cb02db0430298 (patch)
treed87e0c2006f7f05ba3ba2ea9389f5ead5dd9c38d /chrome/browser/cocoa/location_bar_view_mac.h
parent9c15cb8367e88dad4e6d13fe6a4fb8266f20c4dd (diff)
downloadchromium_src-747e5512174b7c24d256f93f867cb02db0430298.zip
chromium_src-747e5512174b7c24d256f93f867cb02db0430298.tar.gz
chromium_src-747e5512174b7c24d256f93f867cb02db0430298.tar.bz2
Revert "Initial implemention of Mac Omnibox."
Reverts: http://codereview.chromium.org/50074 http://src.chromium.org/viewvc/chrome?view=rev&revision=13201 Review URL: http://codereview.chromium.org/63047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13227 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/location_bar_view_mac.h')
-rw-r--r--chrome/browser/cocoa/location_bar_view_mac.h71
1 files changed, 0 insertions, 71 deletions
diff --git a/chrome/browser/cocoa/location_bar_view_mac.h b/chrome/browser/cocoa/location_bar_view_mac.h
deleted file mode 100644
index f39ff25..0000000
--- a/chrome/browser/cocoa/location_bar_view_mac.h
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright (c) 2009 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 <Cocoa/Cocoa.h>
-
-#include "base/scoped_ptr.h"
-#include "chrome/browser/autocomplete/autocomplete_edit.h"
-#include "chrome/browser/location_bar.h"
-
-class AutocompleteEditViewMac;
-class CommandUpdater;
-class ToolbarModel;
-
-// A C++ bridge class that represents the location bar UI element to
-// the portable code. Wires up an AutocompleteEditViewMac instance to
-// the location bar text field, which handles most of the work.
-
-class LocationBarViewMac : public AutocompleteEditController,
- public LocationBar {
- public:
- LocationBarViewMac(CommandUpdater* command_updater,
- ToolbarModel* toolbar_model);
- virtual ~LocationBarViewMac();
-
- void Init();
-
- void SetField(NSTextField* field);
-
- virtual void ShowFirstRunBubble() { NOTIMPLEMENTED(); }
- virtual std::wstring GetInputString() const;
- virtual WindowOpenDisposition GetWindowOpenDisposition() const;
- virtual PageTransition::Type GetPageTransition() const;
- virtual void AcceptInput() { NOTIMPLEMENTED(); }
- virtual void AcceptInputWithDisposition(WindowOpenDisposition disposition)
- { NOTIMPLEMENTED(); }
- virtual void FocusLocation();
- virtual void FocusSearch() { NOTIMPLEMENTED(); }
- virtual void UpdateFeedIcon() { /* http://crbug.com/8832 */ }
- virtual void SaveStateToContents(TabContents* contents);
-
- virtual void OnAutocompleteAccept(const GURL& url,
- WindowOpenDisposition disposition,
- PageTransition::Type transition,
- const GURL& alternate_nav_url);
- virtual void OnChanged();
- virtual void OnInputInProgress(bool in_progress);
- virtual SkBitmap GetFavIcon() const;
- virtual std::wstring GetTitle() const;
-
- private:
- scoped_ptr<AutocompleteEditViewMac> edit_view_;
-
- // TODO(shess): Determine ownership of these. We definitely
- // shouldn't.
- CommandUpdater* command_updater_; // weak
- ToolbarModel* toolbar_model_; // weak
-
- // When we get an OnAutocompleteAccept notification from the autocomplete
- // edit, we save the input string so we can give it back to the browser on
- // the LocationBar interface via GetInputString().
- std::wstring location_input_;
-
- // The user's desired disposition for how their input should be opened
- WindowOpenDisposition disposition_;
-
- // The transition type to use for the navigation
- PageTransition::Type transition_;
-
- DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac);
-};