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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/prefs/public/pref_change_registrar.h" | 10 #include "base/prefs/public/pref_change_registrar.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
56 void SetInstantSuggestion(const InstantSuggestion& suggestion); | 56 void SetInstantSuggestion(const InstantSuggestion& suggestion); |
57 | 57 |
58 // Invoked by |instant_| to get the bounds that the preview is placed at, | 58 // Invoked by |instant_| to get the bounds that the preview is placed at, |
59 // in screen coordinated. | 59 // in screen coordinated. |
60 gfx::Rect GetInstantBounds(); | 60 gfx::Rect GetInstantBounds(); |
61 | 61 |
62 // Invoked by |instant_| to notify that the preview gained focus, usually due | 62 // Invoked by |instant_| to notify that the preview gained focus, usually due |
63 // to the user clicking on it. | 63 // to the user clicking on it. |
64 void InstantPreviewFocused(); | 64 void InstantPreviewFocused(); |
65 | 65 |
66 // Invoked by |instant_| to set invisible focus in the omnibox. | |
67 void SetInvisibleFocus(); | |
Peter Kasting
2012/12/04 02:00:52
Nit: Maybe this should be:
// Invoked by |insta
samarth
2012/12/04 04:55:35
Done.
| |
68 | |
66 // Invoked by |instant_| to get the currently active tab, over which the | 69 // Invoked by |instant_| to get the currently active tab, over which the |
67 // preview would be shown. | 70 // preview would be shown. |
68 TabContents* GetActiveTabContents() const; | 71 TabContents* GetActiveTabContents() const; |
69 | 72 |
70 // Invoked by |browser_| when the active tab changes. | 73 // Invoked by |browser_| when the active tab changes. |
71 void ActiveTabChanged(); | 74 void ActiveTabChanged(); |
72 | 75 |
73 // Invoked by |BrowserWindow| during layout to set content height which is | 76 // Invoked by |BrowserWindow| during layout to set content height which is |
74 // used as theme area height, i.e. the height of the area that the entire | 77 // used as theme area height, i.e. the height of the area that the entire |
75 // theme background image should fill up. | 78 // theme background image should fill up. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
111 PrefChangeRegistrar profile_pref_registrar_; | 114 PrefChangeRegistrar profile_pref_registrar_; |
112 | 115 |
113 content::NotificationRegistrar registrar_; | 116 content::NotificationRegistrar registrar_; |
114 | 117 |
115 DISALLOW_COPY_AND_ASSIGN(BrowserInstantController); | 118 DISALLOW_COPY_AND_ASSIGN(BrowserInstantController); |
116 }; | 119 }; |
117 | 120 |
118 } // namespace chrome | 121 } // namespace chrome |
119 | 122 |
120 #endif // CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_ | 123 #endif // CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_ |
OLD | NEW |