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

Side by Side Diff: chrome/browser/ui/browser_instant_controller.h

Issue 11369137: Implement {Start,Stop}CapturingKeyStrokes for Instant. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase. Added comment. Created 8 years 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
« no previous file with comments | « chrome/browser/instant/instant_tab.cc ('k') | chrome/browser/ui/browser_instant_controller.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 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 void SetInstantSuggestion(const InstantSuggestion& suggestion); 59 void SetInstantSuggestion(const InstantSuggestion& suggestion);
60 60
61 // Invoked by |instant_| to get the bounds that the preview is placed at, 61 // Invoked by |instant_| to get the bounds that the preview is placed at,
62 // in screen coordinated. 62 // in screen coordinated.
63 gfx::Rect GetInstantBounds(); 63 gfx::Rect GetInstantBounds();
64 64
65 // Invoked by |instant_| to notify that the preview gained focus, usually due 65 // Invoked by |instant_| to notify that the preview gained focus, usually due
66 // to the user clicking on it. 66 // to the user clicking on it.
67 void InstantPreviewFocused(); 67 void InstantPreviewFocused();
68 68
69 // Invoked by |instant_| to give the omnibox focus invisibly.
70 void FocusOmniboxInvisibly();
71
69 // Invoked by |instant_| to get the currently active tab, over which the 72 // Invoked by |instant_| to get the currently active tab, over which the
70 // preview would be shown. 73 // preview would be shown.
71 content::WebContents* GetActiveWebContents() const; 74 content::WebContents* GetActiveWebContents() const;
72 75
73 // Invoked by |browser_| when the active tab changes. 76 // Invoked by |browser_| when the active tab changes.
74 void ActiveTabChanged(); 77 void ActiveTabChanged();
75 78
76 // Invoked by |BrowserWindow| during layout to set content height which is 79 // Invoked by |BrowserWindow| during layout to set content height which is
77 // used as theme area height, i.e. the height of the area that the entire 80 // used as theme area height, i.e. the height of the area that the entire
78 // theme background image should fill up. 81 // theme background image should fill up.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 PrefChangeRegistrar profile_pref_registrar_; 117 PrefChangeRegistrar profile_pref_registrar_;
115 118
116 content::NotificationRegistrar registrar_; 119 content::NotificationRegistrar registrar_;
117 120
118 DISALLOW_COPY_AND_ASSIGN(BrowserInstantController); 121 DISALLOW_COPY_AND_ASSIGN(BrowserInstantController);
119 }; 122 };
120 123
121 } // namespace chrome 124 } // namespace chrome
122 125
123 #endif // CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_ 126 #endif // CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/instant/instant_tab.cc ('k') | chrome/browser/ui/browser_instant_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698