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

Side by Side Diff: chrome/browser/ui/touch/tabs/touch_tab_strip.cc

Issue 7529011: Add a flag that lets the webstore show a different UI on app install. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed files added in separate CL (r95432) Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/ui/touch/tabs/touch_tab_strip.h" 5 #include "chrome/browser/ui/touch/tabs/touch_tab_strip.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "chrome/browser/ui/touch/tabs/touch_tab.h" 10 #include "chrome/browser/ui/touch/tabs/touch_tab.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 bool TouchTabStrip::IsPositionInWindowCaption(const gfx::Point& point) { 52 bool TouchTabStrip::IsPositionInWindowCaption(const gfx::Point& point) {
53 // The entire tabstrip is mine. No part of it belongs to the window caption. 53 // The entire tabstrip is mine. No part of it belongs to the window caption.
54 return false; 54 return false;
55 } 55 }
56 56
57 void TouchTabStrip::SetBackgroundOffset(const gfx::Point& offset) { 57 void TouchTabStrip::SetBackgroundOffset(const gfx::Point& offset) {
58 for (int i = 0; i < tab_count(); ++i) 58 for (int i = 0; i < tab_count(); ++i)
59 GetTabAtTabDataIndex(i)->set_background_offset(offset); 59 GetTabAtTabDataIndex(i)->set_background_offset(offset);
60 } 60 }
61 61
62 views::View* TouchTabStrip::GetNewTabButton() {
63 return NULL;
64 }
65
62 //////////////////////////////////////////////////////////////////////////////// 66 ////////////////////////////////////////////////////////////////////////////////
63 // TouchTabStrip, BaseTabStrip implementation: 67 // TouchTabStrip, BaseTabStrip implementation:
64 68
65 void TouchTabStrip::PrepareForCloseAt(int model_index) { 69 void TouchTabStrip::PrepareForCloseAt(int model_index) {
66 if (!in_tab_close_ && IsAnimating()) { 70 if (!in_tab_close_ && IsAnimating()) {
67 // Cancel any current animations. We do this as remove uses the current 71 // Cancel any current animations. We do this as remove uses the current
68 // ideal bounds and we need to know ideal bounds is in a good state. 72 // ideal bounds and we need to know ideal bounds is in a good state.
69 StopAnimating(true); 73 StopAnimating(true);
70 } 74 }
71 75
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 last_tapped_view_ = view; 364 last_tapped_view_ = view;
361 return ui::TOUCH_STATUS_UNKNOWN; 365 return ui::TOUCH_STATUS_UNKNOWN;
362 } 366 }
363 367
364 void TouchTabStrip::ViewHierarchyChanged(bool is_add, 368 void TouchTabStrip::ViewHierarchyChanged(bool is_add,
365 View* parent, 369 View* parent,
366 View* child) { 370 View* child) {
367 if (!is_add && last_tapped_view_ == child) 371 if (!is_add && last_tapped_view_ == child)
368 last_tapped_view_ = NULL; 372 last_tapped_view_ = NULL;
369 } 373 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/touch/tabs/touch_tab_strip.h ('k') | chrome/browser/ui/views/extensions/extension_installed_bubble.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698