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

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

Issue 11359198: Implement the Instant extended API startMargin, endMargin, and rtl properties and the onmarginchang… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Mac build error (PopupChangedBoundsTo -> OnPopupChangedBounds) 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 | Annotate | Revision Log
« 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 void ActiveTabChanged(); 77 void ActiveTabChanged();
78 78
79 // Invoked by |BrowserWindow| during layout to set content height which is 79 // Invoked by |BrowserWindow| during layout to set content height which is
80 // 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
81 // theme background image should fill up. 81 // theme background image should fill up.
82 void SetContentHeight(int height); 82 void SetContentHeight(int height);
83 83
84 // Invoked by |instant_| to update theme information for preview. 84 // Invoked by |instant_| to update theme information for preview.
85 void UpdateThemeInfoForPreview(); 85 void UpdateThemeInfoForPreview();
86 86
87 // Sets the start and end margins of the omnibox text area.
88 void SetMarginSize(int start, int end);
89
87 private: 90 private:
88 // Sets the value of |instant_| based on value from profile. Invoked 91 // Sets the value of |instant_| based on value from profile. Invoked
89 // on pref change. 92 // on pref change.
90 void ResetInstant(); 93 void ResetInstant();
91 94
92 // Overridden from search::SearchModelObserver: 95 // Overridden from search::SearchModelObserver:
93 virtual void ModeChanged(const search::Mode& old_mode, 96 virtual void ModeChanged(const search::Mode& old_mode,
94 const search::Mode& new_mode) OVERRIDE; 97 const search::Mode& new_mode) OVERRIDE;
95 98
96 // content::NotificationObserver implementation. 99 // content::NotificationObserver implementation.
(...skipping 20 matching lines...) Expand all
117 PrefChangeRegistrar profile_pref_registrar_; 120 PrefChangeRegistrar profile_pref_registrar_;
118 121
119 content::NotificationRegistrar registrar_; 122 content::NotificationRegistrar registrar_;
120 123
121 DISALLOW_COPY_AND_ASSIGN(BrowserInstantController); 124 DISALLOW_COPY_AND_ASSIGN(BrowserInstantController);
122 }; 125 };
123 126
124 } // namespace chrome 127 } // namespace chrome
125 128
126 #endif // CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_ 129 #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