OLD | NEW |
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/panels/old_base_panel_browser_test.h" | 5 #include "chrome/browser/ui/panels/old_base_panel_browser_test.h" |
6 | 6 |
7 #include "chrome/browser/ui/browser_list.h" | 7 #include "chrome/browser/ui/browser_list.h" |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 return panel; | 413 return panel; |
414 } | 414 } |
415 | 415 |
416 // static | 416 // static |
417 NativePanelTesting* OldBasePanelBrowserTest::CreateNativePanelTesting( | 417 NativePanelTesting* OldBasePanelBrowserTest::CreateNativePanelTesting( |
418 Panel* panel) { | 418 Panel* panel) { |
419 return panel->native_panel()->CreateNativePanelTesting(); | 419 return panel->native_panel()->CreateNativePanelTesting(); |
420 } | 420 } |
421 | 421 |
422 void OldBasePanelBrowserTest::CreateTestTabContents(Browser* browser) { | 422 void OldBasePanelBrowserTest::CreateTestTabContents(Browser* browser) { |
423 TabContents* tab_contents = new TabContents( | 423 TabContents* tab_contents = TabContents::Factory::CreateTabContents( |
424 WebContentsTester::CreateTestWebContents(browser->profile(), NULL)); | 424 WebContentsTester::CreateTestWebContents(browser->profile(), NULL)); |
425 chrome::AddTab(browser, tab_contents, content::PAGE_TRANSITION_LINK); | 425 chrome::AddTab(browser, tab_contents, content::PAGE_TRANSITION_LINK); |
426 } | 426 } |
427 | 427 |
428 scoped_refptr<Extension> OldBasePanelBrowserTest::CreateExtension( | 428 scoped_refptr<Extension> OldBasePanelBrowserTest::CreateExtension( |
429 const FilePath::StringType& path, | 429 const FilePath::StringType& path, |
430 Extension::Location location, | 430 Extension::Location location, |
431 const DictionaryValue& extra_value) { | 431 const DictionaryValue& extra_value) { |
432 #if defined(OS_WIN) | 432 #if defined(OS_WIN) |
433 FilePath full_path(FILE_PATH_LITERAL("c:\\")); | 433 FilePath full_path(FILE_PATH_LITERAL("c:\\")); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 } | 495 } |
496 | 496 |
497 void OldBasePanelBrowserTest::MoveMouse(const gfx::Point& position) { | 497 void OldBasePanelBrowserTest::MoveMouse(const gfx::Point& position) { |
498 PanelManager::GetInstance()->mouse_watcher()->NotifyMouseMovement(position); | 498 PanelManager::GetInstance()->mouse_watcher()->NotifyMouseMovement(position); |
499 } | 499 } |
500 | 500 |
501 std::string OldBasePanelBrowserTest::MakePanelName(int index) { | 501 std::string OldBasePanelBrowserTest::MakePanelName(int index) { |
502 std::string panel_name("Panel"); | 502 std::string panel_name("Panel"); |
503 return panel_name + base::IntToString(index); | 503 return panel_name + base::IntToString(index); |
504 } | 504 } |
OLD | NEW |