diff options
author | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-08 04:53:50 +0000 |
---|---|---|
committer | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-08 04:53:50 +0000 |
commit | a1481e294812aab9b6050db712669d2b75fea5a4 (patch) | |
tree | f3aabc41eafde15154a3c335fad39be6b648f320 /chrome/browser/cocoa/location_bar_view_mac.h | |
parent | 8ff8763e823b748b56c5c688568cd1b449cf3465 (diff) | |
download | chromium_src-a1481e294812aab9b6050db712669d2b75fea5a4.zip chromium_src-a1481e294812aab9b6050db712669d2b75fea5a4.tar.gz chromium_src-a1481e294812aab9b6050db712669d2b75fea5a4.tar.bz2 |
Move location bar bridge out of tab_contents_controller.
[So that I don't keep getting conflicts as I work to finish the omnibox change
http://codereview.chromium.org/50074
]
Review URL: http://codereview.chromium.org/63096
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13342 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.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/location_bar_view_mac.h b/chrome/browser/cocoa/location_bar_view_mac.h new file mode 100644 index 0000000..2e32afc --- /dev/null +++ b/chrome/browser/cocoa/location_bar_view_mac.h @@ -0,0 +1,52 @@ +// 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. + +#ifndef CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ +#define CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ + +#import <Cocoa/Cocoa.h> + +#include "chrome/browser/location_bar.h" + +// A C++ bridge class that handles responding to requests from the +// cross-platform code for information about the location bar. + +class LocationBarViewMac : public LocationBar { + public: + LocationBarViewMac(NSTextField* field); + virtual ~LocationBarViewMac(); + + // TODO(shess): This is a placeholder for the Omnibox code. The + // problem it will paper over is that Profile availability does not + // match object creation in TabContentsController. Circle back and + // resolve this after the Profile-handling and tab logic changes are + // complete. + void Init(); + + // Overridden from LocationBar + virtual void ShowFirstRunBubble() { NOTIMPLEMENTED(); } + virtual std::wstring GetInputString() const; + virtual WindowOpenDisposition GetWindowOpenDisposition() const + { NOTIMPLEMENTED(); return CURRENT_TAB; } + // TODO(rohitrao): Fix this to return different types once autocomplete and + // the onmibar are implemented. For now, any URL that comes from the + // LocationBar has to have been entered by the user, and thus is of type + // PageTransition::TYPED. + virtual PageTransition::Type GetPageTransition() const + { NOTIMPLEMENTED(); return PageTransition::TYPED; } + 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) { NOTIMPLEMENTED(); } + + private: + NSTextField* field_; // weak, owned by TabContentsController + + DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); +}; + +#endif // CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ |