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

Side by Side Diff: ui/app_list/views/contents_switcher_view.cc

Issue 187483005: Extending the Views-on-Mac experiment: whole app list grid. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: still compiles r263560 + crrev/195793005 Created 6 years, 8 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
« no previous file with comments | « ui/app_list/views/apps_grid_view.cc ('k') | ui/app_list/views/folder_background_view.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "ui/app_list/views/contents_switcher_view.h" 5 #include "ui/app_list/views/contents_switcher_view.h"
6 6
7 #include "ui/app_list/app_list_constants.h" 7 #include "ui/app_list/app_list_constants.h"
8 #include "ui/app_list/views/contents_view.h" 8 #include "ui/app_list/views/contents_view.h"
9 #include "ui/gfx/canvas.h" 9 #include "ui/gfx/canvas.h"
10 #include "ui/views/controls/button/custom_button.h" 10 #include "ui/views/controls/button/custom_button.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 gfx::Size buttons_size(buttons_->GetPreferredSize()); 84 gfx::Size buttons_size(buttons_->GetPreferredSize());
85 gfx::Rect buttons_bounds(rect.CenterPoint().x() - buttons_size.width() / 2, 85 gfx::Rect buttons_bounds(rect.CenterPoint().x() - buttons_size.width() / 2,
86 rect.y(), 86 rect.y(),
87 buttons_size.width(), 87 buttons_size.width(),
88 rect.height()); 88 rect.height());
89 buttons_->SetBoundsRect(gfx::IntersectRects(rect, buttons_bounds)); 89 buttons_->SetBoundsRect(gfx::IntersectRects(rect, buttons_bounds));
90 } 90 }
91 91
92 void ContentsSwitcherView::ButtonPressed(views::Button* sender, 92 void ContentsSwitcherView::ButtonPressed(views::Button* sender,
93 const ui::Event& event) { 93 const ui::Event& event) {
94 #ifdef FIXME
94 contents_view_->SetShowState( 95 contents_view_->SetShowState(
95 static_cast<ContentsView::ShowState>(sender->tag())); 96 static_cast<ContentsView::ShowState>(sender->tag()));
97 #endif
96 } 98 }
97 99
98 } // namespace app_list 100 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/views/apps_grid_view.cc ('k') | ui/app_list/views/folder_background_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698