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

Side by Side Diff: chrome/browser/ui/views/tabs/tab.cc

Issue 11881042: highlight intermediate tabs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make check for Gesture vs Scroll event for flings explicit Created 7 years, 11 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 #include "chrome/browser/ui/views/tabs/tab.h" 5 #include "chrome/browser/ui/views/tabs/tab.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/alias.h" 10 #include "base/debug/alias.h"
(...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after
939 controller()->SelectTab(this); 939 controller()->SelectTab(this);
940 } 940 }
941 } 941 }
942 942
943 void Tab::OnMouseCaptureLost() { 943 void Tab::OnMouseCaptureLost() {
944 if (controller()) 944 if (controller())
945 controller()->EndDrag(END_DRAG_CAPTURE_LOST); 945 controller()->EndDrag(END_DRAG_CAPTURE_LOST);
946 } 946 }
947 947
948 void Tab::OnMouseEntered(const ui::MouseEvent& event) { 948 void Tab::OnMouseEntered(const ui::MouseEvent& event) {
949 hover_controller_.Show(); 949 hover_controller_.Show(views::GlowHoverController::SUBTLE);
950 } 950 }
951 951
952 void Tab::OnMouseMoved(const ui::MouseEvent& event) { 952 void Tab::OnMouseMoved(const ui::MouseEvent& event) {
953 hover_controller_.SetLocation(event.location()); 953 hover_controller_.SetLocation(event.location());
954 if (controller()) 954 if (controller())
955 controller()->OnMouseEventInTab(this, event); 955 controller()->OnMouseEventInTab(this, event);
956 } 956 }
957 957
958 void Tab::OnMouseExited(const ui::MouseEvent& event) { 958 void Tab::OnMouseExited(const ui::MouseEvent& event) {
959 hover_controller_.Hide(); 959 hover_controller_.Hide();
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after
1625 const gfx::ImageSkia& image) { 1625 const gfx::ImageSkia& image) {
1626 DCHECK_NE(scale_factor, ui::SCALE_FACTOR_NONE); 1626 DCHECK_NE(scale_factor, ui::SCALE_FACTOR_NONE);
1627 ImageCacheEntry entry; 1627 ImageCacheEntry entry;
1628 entry.resource_id = resource_id; 1628 entry.resource_id = resource_id;
1629 entry.scale_factor = scale_factor; 1629 entry.scale_factor = scale_factor;
1630 entry.image = image; 1630 entry.image = image;
1631 image_cache_->push_front(entry); 1631 image_cache_->push_front(entry);
1632 if (image_cache_->size() > kMaxImageCacheSize) 1632 if (image_cache_->size() > kMaxImageCacheSize)
1633 image_cache_->pop_back(); 1633 image_cache_->pop_back();
1634 } 1634 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698