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

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

Issue 9665008: views: Nuke is_mouse_gesture parameter from ContextMenuController::ShowContextMenuForView(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nuke is_mouse_gesture parameter Created 8 years, 9 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/base_tab.h ('k') | chrome/browser/ui/views/task_manager_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 (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/base_tab.h" 5 #include "chrome/browser/ui/views/tabs/base_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/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 void BaseTab::AnimationEnded(const ui::Animation* animation) { 501 void BaseTab::AnimationEnded(const ui::Animation* animation) {
502 SchedulePaint(); 502 SchedulePaint();
503 } 503 }
504 504
505 void BaseTab::ButtonPressed(views::Button* sender, const views::Event& event) { 505 void BaseTab::ButtonPressed(views::Button* sender, const views::Event& event) {
506 DCHECK(sender == close_button_); 506 DCHECK(sender == close_button_);
507 controller()->CloseTab(this); 507 controller()->CloseTab(this);
508 } 508 }
509 509
510 void BaseTab::ShowContextMenuForView(views::View* source, 510 void BaseTab::ShowContextMenuForView(views::View* source,
511 const gfx::Point& p, 511 const gfx::Point& point) {
512 bool is_mouse_gesture) {
513 if (controller() && !closing()) 512 if (controller() && !closing())
514 controller()->ShowContextMenuForTab(this, p); 513 controller()->ShowContextMenuForTab(this, point);
515 } 514 }
516 515
517 int BaseTab::loading_animation_frame() const { 516 int BaseTab::loading_animation_frame() const {
518 return loading_animation_frame_; 517 return loading_animation_frame_;
519 } 518 }
520 519
521 bool BaseTab::should_display_crashed_favicon() const { 520 bool BaseTab::should_display_crashed_favicon() const {
522 return should_display_crashed_favicon_; 521 return should_display_crashed_favicon_;
523 } 522 }
524 523
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 // static 571 // static
573 void BaseTab::InitResources() { 572 void BaseTab::InitResources() {
574 static bool initialized = false; 573 static bool initialized = false;
575 if (!initialized) { 574 if (!initialized) {
576 initialized = true; 575 initialized = true;
577 font_ = new gfx::Font( 576 font_ = new gfx::Font(
578 ResourceBundle::GetSharedInstance().GetFont(ResourceBundle::BaseFont)); 577 ResourceBundle::GetSharedInstance().GetFont(ResourceBundle::BaseFont));
579 font_height_ = font_->GetHeight(); 578 font_height_ = font_->GetHeight();
580 } 579 }
581 } 580 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/base_tab.h ('k') | chrome/browser/ui/views/task_manager_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698