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

Unified Diff: extensions/shell/browser/shell_app_window.h

Issue 571643003: Remove app_shell chrome.shell API and ShellAppWindow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (remove-shell) rebase 2 Created 6 years, 3 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
« no previous file with comments | « extensions/shell/browser/desktop_controller.h ('k') | extensions/shell/browser/shell_app_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/shell/browser/shell_app_window.h
diff --git a/extensions/shell/browser/shell_app_window.h b/extensions/shell/browser/shell_app_window.h
deleted file mode 100644
index ebeb94845204f9bbdc44af047bb2fa91205cb631..0000000000000000000000000000000000000000
--- a/extensions/shell/browser/shell_app_window.h
+++ /dev/null
@@ -1,86 +0,0 @@
-// Copyright 2014 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.
-
-#ifndef EXTENSIONS_SHELL_BROWSER_SHELL_APP_WINDOW_H_
-#define EXTENSIONS_SHELL_BROWSER_SHELL_APP_WINDOW_H_
-
-#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
-#include "content/public/browser/web_contents_delegate.h"
-#include "content/public/browser/web_contents_observer.h"
-#include "extensions/browser/extension_function_dispatcher.h"
-
-struct ExtensionHostMsg_Request_Params;
-class GURL;
-
-namespace aura {
-class Window;
-}
-
-namespace content {
-class BrowserContext;
-class WebContents;
-}
-
-namespace gfx {
-class Size;
-}
-
-namespace extensions {
-
-class ExtensionFunctionDispatcher;
-class ShellWebContentsDelegate;
-
-// A simplified app window created by chrome.app.window.create(). Manages the
-// primary web contents for the app.
-class ShellAppWindow : public content::WebContentsDelegate,
- public content::WebContentsObserver,
- public ExtensionFunctionDispatcher::Delegate {
- public:
- ShellAppWindow();
- virtual ~ShellAppWindow();
-
- // Creates the web contents and attaches extension-specific helpers.
- // Passing a valid |initial_size| to avoid a web contents resize.
- void Init(content::BrowserContext* context,
- const Extension* extension,
- gfx::Size initial_size);
-
- // Starts loading |url| which must be an extension URL.
- void LoadURL(const GURL& url);
-
- // Returns the window hosting the web contents.
- aura::Window* GetNativeWindow();
-
- // Returns the routing ID of the render view host of |web_contents_|.
- int GetRenderViewRoutingID();
-
- // content::WebContentsDelegate overrides:
- virtual void RequestMediaAccessPermission(
- content::WebContents* web_contents,
- const content::MediaStreamRequest& request,
- const content::MediaResponseCallback& callback) OVERRIDE;
-
- // content::WebContentsObserver overrides:
- virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
-
- // ExtensionFunctionDispatcher::Delegate overrides:
- virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE;
-
- private:
- // IPC handler.
- void OnRequest(const ExtensionHostMsg_Request_Params& params);
-
- // The extension that spawned this window. Not owned.
- const Extension* extension_;
-
- scoped_ptr<content::WebContents> web_contents_;
- scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_;
-
- DISALLOW_COPY_AND_ASSIGN(ShellAppWindow);
-};
-
-} // namespace extensions
-
-#endif // EXTENSIONS_SHELL_BROWSER_SHELL_APP_WINDOW_H_
« no previous file with comments | « extensions/shell/browser/desktop_controller.h ('k') | extensions/shell/browser/shell_app_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698