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

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: Fix which active tab we use. 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
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_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/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 void SetInstantSuggestion(const InstantSuggestion& suggestion); 51 void SetInstantSuggestion(const InstantSuggestion& suggestion);
52 52
53 // Invoked by |instant_| to get the bounds that the preview is placed at, 53 // Invoked by |instant_| to get the bounds that the preview is placed at,
54 // in screen coordinated. 54 // in screen coordinated.
55 gfx::Rect GetInstantBounds(); 55 gfx::Rect GetInstantBounds();
56 56
57 // Invoked by |instant_| to notify that the preview gained focus, usually due 57 // Invoked by |instant_| to notify that the preview gained focus, usually due
58 // to the user clicking on it. 58 // to the user clicking on it.
59 void InstantPreviewFocused(); 59 void InstantPreviewFocused();
60 60
61 // Invoked by |instant_| to notify that the Instant page searchbox lost focus.
62 void OnWebSearchBoxBlur();
63
64 // Invoked by |instant_| to notify that the Instant page searchbox got focus.
65 void OnWebSearchBoxFocus();
66
61 // Invoked by |instant_| to get the currently active tab, over which the 67 // Invoked by |instant_| to get the currently active tab, over which the
62 // preview would be shown. 68 // preview would be shown.
63 TabContents* GetActiveTabContents() const; 69 TabContents* GetActiveTabContents() const;
64 70
65 // Overridden from PrefObserver: 71 // Overridden from PrefObserver:
66 virtual void OnPreferenceChanged(PrefServiceBase* service, 72 virtual void OnPreferenceChanged(PrefServiceBase* service,
67 const std::string& pref_name) OVERRIDE; 73 const std::string& pref_name) OVERRIDE;
68 74
69 // Overridden from TabStripModelObserver: 75 // Overridden from TabStripModelObserver:
70 virtual void ActiveTabChanged(content::WebContents* old_contents, 76 virtual void ActiveTabChanged(content::WebContents* old_contents,
(...skipping 15 matching lines...) Expand all
86 InstantUnloadHandler instant_unload_handler_; 92 InstantUnloadHandler instant_unload_handler_;
87 93
88 PrefChangeRegistrar profile_pref_registrar_; 94 PrefChangeRegistrar profile_pref_registrar_;
89 95
90 DISALLOW_COPY_AND_ASSIGN(BrowserInstantController); 96 DISALLOW_COPY_AND_ASSIGN(BrowserInstantController);
91 }; 97 };
92 98
93 } // namespace chrome 99 } // namespace chrome
94 100
95 #endif // CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_ 101 #endif // CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698