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

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: 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
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) { 512 views::GestureType gesture_type) {
513 if (controller() && !closing()) 513 if (controller() && !closing())
514 controller()->ShowContextMenuForTab(this, p); 514 controller()->ShowContextMenuForTab(this, point);
515 } 515 }
516 516
517 int BaseTab::loading_animation_frame() const { 517 int BaseTab::loading_animation_frame() const {
518 return loading_animation_frame_; 518 return loading_animation_frame_;
519 } 519 }
520 520
521 bool BaseTab::should_display_crashed_favicon() const { 521 bool BaseTab::should_display_crashed_favicon() const {
522 return should_display_crashed_favicon_; 522 return should_display_crashed_favicon_;
523 } 523 }
524 524
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 // static 572 // static
573 void BaseTab::InitResources() { 573 void BaseTab::InitResources() {
574 static bool initialized = false; 574 static bool initialized = false;
575 if (!initialized) { 575 if (!initialized) {
576 initialized = true; 576 initialized = true;
577 font_ = new gfx::Font( 577 font_ = new gfx::Font(
578 ResourceBundle::GetSharedInstance().GetFont(ResourceBundle::BaseFont)); 578 ResourceBundle::GetSharedInstance().GetFont(ResourceBundle::BaseFont));
579 font_height_ = font_->GetHeight(); 579 font_height_ = font_->GetHeight();
580 } 580 }
581 } 581 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698