OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_BROWSER_INSTANT_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 void ActiveTabChanged(); | 66 void ActiveTabChanged(); |
67 | 67 |
68 // Invoked by |browser_| when the active tab is about to be deactivated. | 68 // Invoked by |browser_| when the active tab is about to be deactivated. |
69 void TabDeactivated(content::WebContents* contents); | 69 void TabDeactivated(content::WebContents* contents); |
70 | 70 |
71 // Invoked by the InstantController when it wants to open a URL. | 71 // Invoked by the InstantController when it wants to open a URL. |
72 void OpenURL(const GURL& url, | 72 void OpenURL(const GURL& url, |
73 content::PageTransition transition, | 73 content::PageTransition transition, |
74 WindowOpenDisposition disposition); | 74 WindowOpenDisposition disposition); |
75 | 75 |
| 76 // Invoked by |instant_| to paste the clipboard content into the omnibox. |
| 77 void PasteIntoOmnibox(); |
| 78 |
76 // Sets the stored omnibox bounds. | 79 // Sets the stored omnibox bounds. |
77 void SetOmniboxBounds(const gfx::Rect& bounds); | 80 void SetOmniboxBounds(const gfx::Rect& bounds); |
78 | 81 |
79 // Notifies |instant_| to toggle voice search. | 82 // Notifies |instant_| to toggle voice search. |
80 void ToggleVoiceSearch(); | 83 void ToggleVoiceSearch(); |
81 | 84 |
82 private: | 85 private: |
83 // Overridden from search::SearchModelObserver: | 86 // Overridden from search::SearchModelObserver: |
84 virtual void ModelChanged(const SearchModel::State& old_state, | 87 virtual void ModelChanged(const SearchModel::State& old_state, |
85 const SearchModel::State& new_state) OVERRIDE; | 88 const SearchModel::State& new_state) OVERRIDE; |
(...skipping 13 matching lines...) Expand all Loading... |
99 | 102 |
100 InstantController instant_; | 103 InstantController instant_; |
101 InstantUnloadHandler instant_unload_handler_; | 104 InstantUnloadHandler instant_unload_handler_; |
102 | 105 |
103 PrefChangeRegistrar profile_pref_registrar_; | 106 PrefChangeRegistrar profile_pref_registrar_; |
104 | 107 |
105 DISALLOW_COPY_AND_ASSIGN(BrowserInstantController); | 108 DISALLOW_COPY_AND_ASSIGN(BrowserInstantController); |
106 }; | 109 }; |
107 | 110 |
108 #endif // CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_ | 111 #endif // CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_ |
OLD | NEW |