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

Unified Diff: chrome/browser/ui/ash/chrome_new_window_delegate_chromeos.cc

Issue 1960293003: Remove OS_CHROMEOS from ui/ash code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/ash/chrome_new_window_delegate_chromeos.cc
diff --git a/chrome/browser/ui/ash/chrome_new_window_delegate_chromeos.cc b/chrome/browser/ui/ash/chrome_new_window_delegate_chromeos.cc
deleted file mode 100644
index c9aa10d0055701d916e17e19ca3e7c9c432fa8af..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/ash/chrome_new_window_delegate_chromeos.cc
+++ /dev/null
@@ -1,77 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/ui/ash/chrome_new_window_delegate_chromeos.h"
-
-#include "ash/content/keyboard_overlay/keyboard_overlay_view.h"
-#include "chrome/browser/chromeos/file_manager/app_id.h"
-#include "chrome/browser/extensions/api/terminal/terminal_extension_helper.h"
-#include "chrome/browser/extensions/extension_service.h"
-#include "chrome/browser/extensions/extension_util.h"
-#include "chrome/browser/profiles/profile_manager.h"
-#include "chrome/browser/ui/browser.h"
-#include "chrome/browser/ui/browser_window.h"
-#include "chrome/browser/ui/chrome_pages.h"
-#include "chrome/browser/ui/extensions/app_launch_params.h"
-#include "chrome/browser/ui/extensions/application_launch.h"
-#include "chrome/browser/ui/scoped_tabbed_browser_displayer.h"
-#include "chrome/browser/ui/webui/chrome_web_contents_handler.h"
-#include "chrome/common/url_constants.h"
-#include "content/public/browser/web_contents.h"
-#include "extensions/browser/extension_system.h"
-#include "extensions/common/constants.h"
-#include "ui/base/window_open_disposition.h"
-
-ChromeNewWindowDelegateChromeos::ChromeNewWindowDelegateChromeos() {}
-ChromeNewWindowDelegateChromeos::~ChromeNewWindowDelegateChromeos() {}
-
-void ChromeNewWindowDelegateChromeos::OpenFileManager() {
- using file_manager::kFileManagerAppId;
- Profile* const profile = ProfileManager::GetActiveUserProfile();
- const ExtensionService* const service =
- extensions::ExtensionSystem::Get(profile)->extension_service();
- if (!service ||
- !extensions::util::IsAppLaunchableWithoutEnabling(kFileManagerAppId,
- profile)) {
- return;
- }
-
- const extensions::Extension* const extension =
- service->GetInstalledExtension(kFileManagerAppId);
- OpenApplication(CreateAppLaunchParamsUserContainer(
- profile, extension, NEW_FOREGROUND_TAB, extensions::SOURCE_KEYBOARD));
-}
-
-void ChromeNewWindowDelegateChromeos::OpenGetHelp() {
- Profile* const profile = ProfileManager::GetActiveUserProfile();
- chrome::ShowHelpForProfile(profile, chrome::HELP_SOURCE_KEYBOARD);
-}
-
-void ChromeNewWindowDelegateChromeos::OpenCrosh() {
- Profile* profile = ProfileManager::GetActiveUserProfile();
- GURL crosh_url = extensions::TerminalExtensionHelper::GetCroshExtensionURL(
- profile);
- if (!crosh_url.is_valid())
- return;
- chrome::ScopedTabbedBrowserDisplayer displayer(profile);
- Browser* browser = displayer.browser();
- content::WebContents* page = browser->OpenURL(
- content::OpenURLParams(crosh_url,
- content::Referrer(),
- NEW_FOREGROUND_TAB,
- ui::PAGE_TRANSITION_GENERATED,
- false));
- browser->window()->Show();
- browser->window()->Activate();
- page->Focus();
-}
-
-void ChromeNewWindowDelegateChromeos::ShowKeyboardOverlay() {
- // TODO(mazda): Move the show logic to ash (http://crbug.com/124222).
- Profile* profile = ProfileManager::GetActiveUserProfile();
- std::string url(chrome::kChromeUIKeyboardOverlayURL);
- ash::KeyboardOverlayView::ShowDialog(profile,
- new ChromeWebContentsHandler,
- GURL(url));
-}
« no previous file with comments | « chrome/browser/ui/ash/chrome_new_window_delegate_chromeos.h ('k') | chrome/browser/ui/ash/chrome_screenshot_grabber.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698