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

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

Issue 10832282: Replace views::MouseEvent with ui::MouseEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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
« no previous file with comments | « chrome/browser/ui/views/tabs/tab.h ('k') | chrome/browser/ui/views/tabs/tab_controller.h » ('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 (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/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/defaults.h" 10 #include "chrome/browser/defaults.h"
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 bool include_top_shadow = GetWidget() && GetWidget()->IsMaximized(); 478 bool include_top_shadow = GetWidget() && GetWidget()->IsMaximized();
479 TabResources::GetHitTestMask(width(), height(), include_top_shadow, path); 479 TabResources::GetHitTestMask(width(), height(), include_top_shadow, path);
480 } 480 }
481 481
482 bool Tab::GetTooltipTextOrigin(const gfx::Point& p, gfx::Point* origin) const { 482 bool Tab::GetTooltipTextOrigin(const gfx::Point& p, gfx::Point* origin) const {
483 origin->set_x(title_bounds_.x() + 10); 483 origin->set_x(title_bounds_.x() + 10);
484 origin->set_y(-views::TooltipManager::GetTooltipHeight() - 4); 484 origin->set_y(-views::TooltipManager::GetTooltipHeight() - 4);
485 return true; 485 return true;
486 } 486 }
487 487
488 void Tab::OnMouseMoved(const views::MouseEvent& event) { 488 void Tab::OnMouseMoved(const ui::MouseEvent& event) {
489 hover_controller().SetLocation(event.location()); 489 hover_controller().SetLocation(event.location());
490 BaseTab::OnMouseMoved(event); 490 BaseTab::OnMouseMoved(event);
491 } 491 }
492 492
493 //////////////////////////////////////////////////////////////////////////////// 493 ////////////////////////////////////////////////////////////////////////////////
494 // Tab, private 494 // Tab, private
495 495
496 gfx::ImageSkia* Tab::GetTabBackgroundImage( 496 gfx::ImageSkia* Tab::GetTabBackgroundImage(
497 chrome::search::Mode::Type mode) const { 497 chrome::search::Mode::Type mode) const {
498 ui::ThemeProvider* tp = GetThemeProvider(); 498 ui::ThemeProvider* tp = GetThemeProvider();
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 rb.GetImageSkiaNamed(IDR_TAB_ACTIVE_RIGHT_SEARCH); 815 rb.GetImageSkiaNamed(IDR_TAB_ACTIVE_RIGHT_SEARCH);
816 tab_active_search_.l_width = tab_active_search_.image_l->width(); 816 tab_active_search_.l_width = tab_active_search_.image_l->width();
817 tab_active_search_.r_width = tab_active_search_.image_r->width(); 817 tab_active_search_.r_width = tab_active_search_.image_r->width();
818 818
819 tab_inactive_.image_l = rb.GetImageSkiaNamed(IDR_TAB_INACTIVE_LEFT); 819 tab_inactive_.image_l = rb.GetImageSkiaNamed(IDR_TAB_INACTIVE_LEFT);
820 tab_inactive_.image_c = rb.GetImageSkiaNamed(IDR_TAB_INACTIVE_CENTER); 820 tab_inactive_.image_c = rb.GetImageSkiaNamed(IDR_TAB_INACTIVE_CENTER);
821 tab_inactive_.image_r = rb.GetImageSkiaNamed(IDR_TAB_INACTIVE_RIGHT); 821 tab_inactive_.image_r = rb.GetImageSkiaNamed(IDR_TAB_INACTIVE_RIGHT);
822 tab_inactive_.l_width = tab_inactive_.image_l->width(); 822 tab_inactive_.l_width = tab_inactive_.image_l->width();
823 tab_inactive_.r_width = tab_inactive_.image_r->width(); 823 tab_inactive_.r_width = tab_inactive_.image_r->width();
824 } 824 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab.h ('k') | chrome/browser/ui/views/tabs/tab_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698