OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/views/app_launcher.h" | 5 #include "chrome/browser/views/app_launcher.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 info_bubble_content_->GetBubbleTabContents()->set_delegate(NULL); | 381 info_bubble_content_->GetBubbleTabContents()->set_delegate(NULL); |
382 MessageLoop::current()->PostTask(FROM_HERE, | 382 MessageLoop::current()->PostTask(FROM_HERE, |
383 new DeleteTask<AppLauncher>(this)); | 383 new DeleteTask<AppLauncher>(this)); |
384 } | 384 } |
385 | 385 |
386 void AppLauncher::AddTabWithURL(const GURL& url, | 386 void AppLauncher::AddTabWithURL(const GURL& url, |
387 PageTransition::Type transition) { | 387 PageTransition::Type transition) { |
388 browser_->AddTabWithURL( | 388 browser_->AddTabWithURL( |
389 url, GURL(), transition, -1, | 389 url, GURL(), transition, -1, |
390 TabStripModel::ADD_SELECTED | TabStripModel::ADD_FORCE_INDEX, NULL, | 390 TabStripModel::ADD_SELECTED | TabStripModel::ADD_FORCE_INDEX, NULL, |
391 std::string()); | 391 std::string(), NULL); |
392 } | 392 } |
393 | 393 |
394 void AppLauncher::Resize(const gfx::Size& contents_size) { | 394 void AppLauncher::Resize(const gfx::Size& contents_size) { |
395 info_bubble_content_->ComputePreferredSize(contents_size); | 395 info_bubble_content_->ComputePreferredSize(contents_size); |
396 info_bubble_->SizeToContents(); | 396 info_bubble_->SizeToContents(); |
397 } | 397 } |
OLD | NEW |