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

Side by Side Diff: chrome/browser/autocomplete/autocomplete_edit.h

Issue 10533046: TabContentsWrapper -> TabContents, part 4. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compiling is good Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_edit.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 10 matching lines...) Expand all
21 class AutocompleteController; 21 class AutocompleteController;
22 class AutocompleteEditController; 22 class AutocompleteEditController;
23 class AutocompleteEditModel; 23 class AutocompleteEditModel;
24 class AutocompletePopupModel; 24 class AutocompletePopupModel;
25 class AutocompleteResult; 25 class AutocompleteResult;
26 class InstantController; 26 class InstantController;
27 class OmniboxView; 27 class OmniboxView;
28 class Profile; 28 class Profile;
29 class SkBitmap; 29 class SkBitmap;
30 class TabContents; 30 class TabContents;
31 typedef TabContents TabContentsWrapper;
32 31
33 namespace gfx { 32 namespace gfx {
34 class Rect; 33 class Rect;
35 } 34 }
36 35
37 // TODO(pkasting): The names and contents of the classes in 36 // TODO(pkasting): The names and contents of the classes in
38 // this file are temporary. I am in hack-and-slash mode right now. 37 // this file are temporary. I am in hack-and-slash mode right now.
39 // http://code.google.com/p/chromium/issues/detail?id=6772 38 // http://code.google.com/p/chromium/issues/detail?id=6772
40 39
41 // Embedders of an AutocompleteEdit widget must implement this class. 40 // Embedders of an AutocompleteEdit widget must implement this class.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 73
75 // Returns the favicon of the current page. 74 // Returns the favicon of the current page.
76 virtual SkBitmap GetFavicon() const = 0; 75 virtual SkBitmap GetFavicon() const = 0;
77 76
78 // Returns the title of the current page. 77 // Returns the title of the current page.
79 virtual string16 GetTitle() const = 0; 78 virtual string16 GetTitle() const = 0;
80 79
81 // Returns the InstantController, or NULL if instant is not enabled. 80 // Returns the InstantController, or NULL if instant is not enabled.
82 virtual InstantController* GetInstant() = 0; 81 virtual InstantController* GetInstant() = 0;
83 82
84 // Returns the TabContentsWrapper of the currently selected tab. 83 // Returns the TabContents of the currently active tab.
85 virtual TabContentsWrapper* GetTabContentsWrapper() const = 0; 84 virtual TabContents* GetTabContents() const = 0;
86 85
87 protected: 86 protected:
88 virtual ~AutocompleteEditController(); 87 virtual ~AutocompleteEditController();
89 }; 88 };
90 89
91 class AutocompleteEditModel : public AutocompleteControllerDelegate { 90 class AutocompleteEditModel : public AutocompleteControllerDelegate {
92 public: 91 public:
93 struct State { 92 struct State {
94 State(bool user_input_in_progress, 93 State(bool user_input_in_progress,
95 const string16& user_text, 94 const string16& user_text,
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 // This has no effect if we're already in keyword mode. 564 // This has no effect if we're already in keyword mode.
566 bool allow_exact_keyword_match_; 565 bool allow_exact_keyword_match_;
567 566
568 // Last value of InstantCompleteBehavior supplied to |SetSuggestedText|. 567 // Last value of InstantCompleteBehavior supplied to |SetSuggestedText|.
569 InstantCompleteBehavior instant_complete_behavior_; 568 InstantCompleteBehavior instant_complete_behavior_;
570 569
571 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditModel); 570 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditModel);
572 }; 571 };
573 572
574 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ 573 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_edit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698