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

Side by Side Diff: chrome/browser/ui/apps/chrome_shell_window_delegate.h

Issue 16702003: Move ShellWindow into apps component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: yar Created 7 years, 5 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
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_APPS_CHROME_SHELL_WINDOW_DELEGATE_H_
6 #define CHROME_BROWSER_UI_APPS_CHROME_SHELL_WINDOW_DELEGATE_H_
7
8 #include "apps/shell_window.h"
9 #include "chrome/browser/profiles/profile.h"
10 #include "content/public/browser/web_contents.h"
11 #include "content/public/browser/web_contents_delegate.h"
12 #include "ui/base/window_open_disposition.h"
13 #include "ui/gfx/rect.h"
14
15 namespace chrome {
16
17 class ChromeShellWindowDelegate : public apps::ShellWindow::Delegate {
18 public:
19 ChromeShellWindowDelegate();
20 virtual ~ChromeShellWindowDelegate();
21
22 static void DisableExternalOpenForTesting();
23
24 private:
25 // apps::ShellWindow::Delegate:
26 virtual void InitWebContents(content::WebContents* web_contents) OVERRIDE;
27 virtual content::WebContents* OpenURLFromTab(
28 Profile* profile,
29 content::WebContents* source,
30 const content::OpenURLParams& params) OVERRIDE;
31 virtual void AddNewContents(Profile* profile,
32 content::WebContents* new_contents,
33 WindowOpenDisposition disposition,
34 const gfx::Rect& initial_pos,
35 bool user_gesture,
36 bool* was_blocked) OVERRIDE;
37 virtual content::ColorChooser* ShowColorChooser(
38 content::WebContents* web_contents,
39 SkColor initial_color) OVERRIDE;
40 virtual void RunFileChooser(
41 content::WebContents* tab,
42 const content::FileChooserParams& params) OVERRIDE;
43 virtual void RequestMediaAccessPermission(
44 content::WebContents* web_contents,
45 const content::MediaStreamRequest& request,
46 const content::MediaResponseCallback& callback,
47 const extensions::Extension* extension) OVERRIDE;
48 virtual int PreferredIconSize() OVERRIDE;
49 virtual void SetWebContentsBlocked(content::WebContents* web_contents,
50 bool blocked) OVERRIDE;
51 virtual bool IsWebContentsVisible(
52 content::WebContents* web_contents) OVERRIDE;
53
54 DISALLOW_COPY_AND_ASSIGN(ChromeShellWindowDelegate);
55 };
56
57 } // namespace chrome
58
59 #endif // CHROME_BROWSER_UI_APPS_CHROME_SHELL_WINDOW_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sessions/session_id.h ('k') | chrome/browser/ui/apps/chrome_shell_window_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698