Searched refs:view_model_ (Results 1 - 13 of 13) sorted by relevance

/external/chromium_org/ash/shelf/
H A Dshelf_view.cc227 view_model_(view_model) {}
238 int index = view_model_->GetIndexOfView(starting_view);
240 return view_model_->view_at(0);
245 index = view_model_->view_size() - 1;
248 if (index >= view_model_->view_size())
251 return view_model_->view_at(index);
255 views::ViewModel* view_model_; member in class:ash::__anon1959::ShelfFocusSearch
372 view_model_(new views::ViewModel),
399 focus_search_.reset(new ShelfFocusSearch(view_model_.get()));
419 view_model_
[all...]
H A Dshelf_view.h137 return view_model_.get();
175 // item in the model is set in |view_model_|.
334 scoped_ptr<views::ViewModel> view_model_; member in class:ash::ShelfView
/external/chromium_org/chrome/browser/ui/views/tabs/
H A Dstacked_tab_strip_layout_unittest.cc51 data.stacked_offset, 4, &view_model_));
67 view_model_.Add(child_view, index);
77 view_model_.Clear();
87 for (int i = 0; i < view_model_.view_size(); ++i) {
89 gfx::Rect bounds(view_model_.ideal_bounds(i));
92 view_model_.set_ideal_bounds(i, bounds);
98 for (int i = 0; i < view_model_.view_size(); ++i) {
101 result += base::IntToString(view_model_.ideal_bounds(i).x());
108 for (int i = 0; i < view_model_.view_size(); ++i) {
113 result += base::IntToString(view_model_
132 views::ViewModel view_model_; member in class:StackedTabStripLayoutTest
[all...]
H A Dstacked_tab_strip_layout.h190 int ideal_x(int index) const { return view_model_->ideal_bounds(index).x(); }
199 int tab_count() const { return view_model_->view_size(); }
220 views::ViewModel* view_model_; member in class:StackedTabStripLayout
H A Dstacked_tab_strip_layout.cc21 view_model_(view_model),
123 gfx::Rect mini_bounds(view_model_->ideal_bounds(i));
125 view_model_->set_ideal_bounds(i, mini_bounds);
248 for (int i = 0; i < view_model_->view_size(); ++i) {
253 result += base::IntToString(view_model_->ideal_bounds(i).x());
367 view_model_->ideal_bounds(i - 1).x() + tab_offset());
435 gfx::Rect mini_bounds(view_model_->ideal_bounds(i));
440 view_model_->set_ideal_bounds(i, mini_bounds);
532 view_model_->set_ideal_bounds(index, gfx::Rect(gfx::Point(x, 0), size_));
/external/chromium_org/ash/test/
H A Dshelf_view_test_api.cc47 return shelf_view_->view_model_->view_size();
55 return static_cast<ShelfButton*>(shelf_view_->view_model_->view_at(index));
76 return shelf_view_->view_model_->view_at(index)->bounds();
80 return shelf_view_->view_model_->ideal_bounds(index);
/external/chromium_org/ui/app_list/views/
H A Dapps_grid_view.cc384 view_model_.Clear();
404 for (int i = 0; i < view_model_.view_size(); ++i) {
405 view_model_.view_at(i)->SetVisible(true);
408 static_cast<size_t>(view_model_.view_size()));
699 gfx::Rect bounds = view_model_.ideal_bounds(i);
730 DCHECK(index >= 0 && index < view_model_.view_size());
731 return static_cast<AppListItemView*>(view_model_.view_at(index));
736 view_model_.view_size());
784 // Add drag_view_ to the end of the view_model_.
785 view_model_
[all...]
H A Dcontents_view.cc43 view_model_(new views::ViewModel) {
206 view_model_->view_at(current_page)->SetBoundsRect(outgoing_target);
207 view_model_->view_at(target_page)->SetBoundsRect(incoming_target);
225 return view_model_->view_at(index);
233 int page_index = view_model_->view_size();
235 view_model_->Add(view, page_index);
236 pagination_model_.SetTotalPages(view_model_->view_size());
276 for (int i = 0; i < view_model_->view_size(); ++i) {
277 view_model_->view_at(i)->SetBoundsRect(
283 return view_model_
[all...]
H A Dapp_list_folder_view.cc50 view_model_(new views::ViewModel),
55 view_model_->Add(folder_header_view_, kIndexFolderHeader);
65 view_model_->Add(items_grid_view_, kIndexChildItems);
123 views::ViewModelUtils::SetViewBoundsToIdealBounds(*view_model_);
173 view_model_->set_ideal_bounds(kIndexFolderHeader, header_frame);
177 view_model_->set_ideal_bounds(kIndexChildItems, grid_frame);
H A Dapp_list_folder_view.h116 scoped_ptr<views::ViewModel> view_model_; member in class:app_list::AppListFolderView
H A Dcontents_view.h86 // Gets the index of a launcher page in |view_model_|, by NamedPage.
155 scoped_ptr<views::ViewModel> view_model_; member in class:app_list::ContentsView
156 // Maps NamedPage onto |view_model_| indices.
H A Dapps_grid_view.h193 const views::ViewModel* view_model_for_test() const { return &view_model_; }
319 // containing item located at |target| slot, also update |view_model_| for
323 // Updates both data model and view_model_ for re-parenting a folder item to a
327 // Updates both data model and view_model_ for re-parenting a folder item
332 // from it, updates both data model and view_model_ for removing last item
345 // Removes the AppListItemView at |index| in |view_model_| and deletes it.
472 views::ViewModel view_model_; member in class:app_list::AppsGridView
/external/chromium_org/ui/app_list/views/test/
H A Dapps_grid_view_test_api.cc22 return view_->view_model_.view_at(index);

Completed in 173 milliseconds