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

Side by Side Diff: chrome/browser/ui/omnibox/omnibox_edit_controller.h

Issue 11418043: Remove TabContents from OmniboxEditController and friends. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cros Created 8 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_OMNIBOX_OMNIBOX_EDIT_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_EDIT_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_EDIT_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_EDIT_CONTROLLER_H_
7 7
8 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "content/public/common/page_transition_types.h" 9 #include "content/public/common/page_transition_types.h"
10 #include "webkit/glue/window_open_disposition.h" 10 #include "webkit/glue/window_open_disposition.h"
11 11
12 class GURL; 12 class GURL;
13 class InstantController; 13 class InstantController;
14 class TabContents; 14
15 namespace content {
16 class WebContents;
17 }
15 18
16 namespace gfx { 19 namespace gfx {
17 class Image; 20 class Image;
18 } 21 }
19 22
20 // I am in hack-and-slash mode right now. 23 // I am in hack-and-slash mode right now.
21 // http://code.google.com/p/chromium/issues/detail?id=6772 24 // http://code.google.com/p/chromium/issues/detail?id=6772
22 25
23 // Embedders of an AutocompleteEdit widget must implement this class. 26 // Embedders of an AutocompleteEdit widget must implement this class.
24 class OmniboxEditController { 27 class OmniboxEditController {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 59
57 // Returns the favicon of the current page. 60 // Returns the favicon of the current page.
58 virtual gfx::Image GetFavicon() const = 0; 61 virtual gfx::Image GetFavicon() const = 0;
59 62
60 // Returns the title of the current page. 63 // Returns the title of the current page.
61 virtual string16 GetTitle() const = 0; 64 virtual string16 GetTitle() const = 0;
62 65
63 // Returns the InstantController, or NULL if instant is not enabled. 66 // Returns the InstantController, or NULL if instant is not enabled.
64 virtual InstantController* GetInstant() = 0; 67 virtual InstantController* GetInstant() = 0;
65 68
66 // Returns the TabContents of the currently active tab. 69 // Returns the WebContents of the currently active tab.
67 virtual TabContents* GetTabContents() const = 0; 70 virtual content::WebContents* GetWebContents() const = 0;
68 71
69 protected: 72 protected:
70 virtual ~OmniboxEditController() {} 73 virtual ~OmniboxEditController() {}
71 }; 74 };
72 75
73 #endif // CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_EDIT_CONTROLLER_H_ 76 #endif // CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_EDIT_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/location_bar_view_gtk.cc ('k') | chrome/browser/ui/omnibox/omnibox_edit_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698