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: ui/app_list/views/app_list_view.h

Issue 250423004: ChromeOS: Avoid overlapping app list with virtual keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Avoid DEPS changes; use AppListViewDelegate instead. 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_VIEWS_APP_LIST_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_
6 #define UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "ui/app_list/app_list_export.h" 10 #include "ui/app_list/app_list_export.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 116
117 AppListMainView* app_list_main_view() { return app_list_main_view_; } 117 AppListMainView* app_list_main_view() { return app_list_main_view_; }
118 118
119 private: 119 private:
120 void InitAsBubbleInternal(gfx::NativeView parent, 120 void InitAsBubbleInternal(gfx::NativeView parent,
121 PaginationModel* pagination_model, 121 PaginationModel* pagination_model,
122 views::BubbleBorder::Arrow arrow, 122 views::BubbleBorder::Arrow arrow,
123 bool border_accepts_events, 123 bool border_accepts_events,
124 const gfx::Vector2d& anchor_offset); 124 const gfx::Vector2d& anchor_offset);
125 125
126 // Gets the point at the center of the current screen. 126 // Gets the point at the center of the current screen, excluding the virtual
127 // |screen_to_keep_centered_on_| must not be NULL. 127 // keyboard area. |screen_to_keep_centered_on_| must not be NULL.
128 gfx::Point GetCenterPoint(); 128 gfx::Point GetCenterPoint();
129 129
130 // Overridden from views::BubbleDelegateView: 130 // Overridden from views::BubbleDelegateView:
131 virtual void OnBeforeBubbleWidgetInit( 131 virtual void OnBeforeBubbleWidgetInit(
132 views::Widget::InitParams* params, 132 views::Widget::InitParams* params,
133 views::Widget* widget) const OVERRIDE; 133 views::Widget* widget) const OVERRIDE;
134 134
135 // Overridden from views::WidgetDelegateView: 135 // Overridden from views::WidgetDelegateView:
136 virtual views::View* GetInitiallyFocusedView() OVERRIDE; 136 virtual views::View* GetInitiallyFocusedView() OVERRIDE;
137 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; 137 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE;
(...skipping 30 matching lines...) Expand all
168 // If non-NULL, the app list will remain centered on this screen's primary 168 // If non-NULL, the app list will remain centered on this screen's primary
169 // display. 169 // display.
170 gfx::Screen* screen_to_keep_centered_on_; 170 gfx::Screen* screen_to_keep_centered_on_;
171 171
172 DISALLOW_COPY_AND_ASSIGN(AppListView); 172 DISALLOW_COPY_AND_ASSIGN(AppListView);
173 }; 173 };
174 174
175 } // namespace app_list 175 } // namespace app_list
176 176
177 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ 177 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698