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

Side by Side Diff: ui/app_list/app_list_view_delegate.h

Issue 253983002: Use centered app list position whenever virtual keyboard is enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Only change shape when keyboard enabled (not when it *might* be enabled). Created 6 years, 7 months 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
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 UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ 5 #ifndef UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_
6 #define UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ 6 #define UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // Get the start page web contents. Owned by the AppListViewDelegate. 143 // Get the start page web contents. Owned by the AppListViewDelegate.
144 virtual content::WebContents* GetStartPageContents() = 0; 144 virtual content::WebContents* GetStartPageContents() = 0;
145 145
146 // Get the web contents for speech recognition or NULL if speech recognition 146 // Get the web contents for speech recognition or NULL if speech recognition
147 // is unavailable. 147 // is unavailable.
148 virtual content::WebContents* GetSpeechRecognitionContents() = 0; 148 virtual content::WebContents* GetSpeechRecognitionContents() = 0;
149 149
150 // Returns the list of users (for AppListMenu). 150 // Returns the list of users (for AppListMenu).
151 virtual const Users& GetUsers() const = 0; 151 virtual const Users& GetUsers() const = 0;
152 152
153 // Returns true if the experimental app list position should be used.
154 // (Centered, and wide instead of tall.)
155 virtual bool UseExperimentalAppListPosition() const = 0;
156
153 // Returns the bounds of the virtual keyboard if it is currently visible. 157 // Returns the bounds of the virtual keyboard if it is currently visible.
154 // Returns an empty rect if it is not visible. 158 // Returns an empty rect if it is not visible.
155 virtual gfx::Rect GetVirtualKeyboardBounds() const = 0; 159 virtual gfx::Rect GetVirtualKeyboardBounds() const = 0;
156 160
157 // Adds/removes an observer for profile changes. 161 // Adds/removes an observer for profile changes.
158 virtual void AddObserver(AppListViewDelegateObserver* observer) {} 162 virtual void AddObserver(AppListViewDelegateObserver* observer) {}
159 virtual void RemoveObserver(AppListViewDelegateObserver* observer) {} 163 virtual void RemoveObserver(AppListViewDelegateObserver* observer) {}
160 }; 164 };
161 165
162 } // namespace app_list 166 } // namespace app_list
163 167
164 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ 168 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698