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

Side by Side Diff: extensions/shell/browser/shell_native_app_window.h

Issue 547593002: Add ShellAppsClient, ShellAppDelegate, ShellNativeAppWindow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@apifeatures
Patch Set: 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 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 EXTENSIONS_SHELL_BROWSER_SHELL_NATIVE_APP_WINDOW_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_NATIVE_APP_WINDOW_H_
7
8 #include "extensions/browser/app_window/app_window.h"
9 #include "extensions/browser/app_window/native_app_window.h"
10
11 namespace extensions {
12
13 class ShellNativeAppWindow : public NativeAppWindow {
James Cook 2014/09/05 16:26:43 nit: small class comment?
hashimoto 2014/09/05 17:37:17 Done.
14 public:
15 ShellNativeAppWindow(AppWindow* app_window,
16 const AppWindow::CreateParams& params);
17 virtual ~ShellNativeAppWindow();
18
19 // ui::BaseView overrides:
20 virtual bool IsActive() const OVERRIDE;
21 virtual bool IsMaximized() const OVERRIDE;
22 virtual bool IsMinimized() const OVERRIDE;
23 virtual bool IsFullscreen() const OVERRIDE;
24 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE;
25 virtual gfx::Rect GetRestoredBounds() const OVERRIDE;
26 virtual ui::WindowShowState GetRestoredState() const OVERRIDE;
27 virtual gfx::Rect GetBounds() const OVERRIDE;
28 virtual void Show() OVERRIDE;
29 virtual void Hide() OVERRIDE;
30 virtual void ShowInactive() OVERRIDE;
31 virtual void Close() OVERRIDE;
32 virtual void Activate() OVERRIDE;
33 virtual void Deactivate() OVERRIDE;
34 virtual void Maximize() OVERRIDE;
35 virtual void Minimize() OVERRIDE;
36 virtual void Restore() OVERRIDE;
37 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
38 virtual void FlashFrame(bool flash) OVERRIDE;
39 virtual bool IsAlwaysOnTop() const OVERRIDE;
40 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE;
41
42 // web_modal::ModalDialogHost overrides:
43 virtual gfx::NativeView GetHostView() const OVERRIDE;
44 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE;
45 virtual void AddObserver(
46 web_modal::ModalDialogHostObserver* observer) OVERRIDE;
47 virtual void RemoveObserver(
48 web_modal::ModalDialogHostObserver* observer) OVERRIDE;
49
50 // web_modal::WebContentsModalDialogHost overrides:
51 virtual gfx::Size GetMaximumDialogSize() OVERRIDE;
52
53 // NativeAppWindow overrides:
54 virtual void SetFullscreen(int fullscreen_types) OVERRIDE;
55 virtual bool IsFullscreenOrPending() const OVERRIDE;
56 virtual void UpdateWindowIcon() OVERRIDE;
57 virtual void UpdateWindowTitle() OVERRIDE;
58 virtual void UpdateBadgeIcon() OVERRIDE;
59 virtual void UpdateDraggableRegions(
60 const std::vector<DraggableRegion>& regions) OVERRIDE;
61 virtual SkRegion* GetDraggableRegion() OVERRIDE;
62 virtual void UpdateShape(scoped_ptr<SkRegion> region) OVERRIDE;
63 virtual void HandleKeyboardEvent(
64 const content::NativeWebKeyboardEvent& event) OVERRIDE;
65 virtual bool IsFrameless() const OVERRIDE;
66 virtual bool HasFrameColor() const OVERRIDE;
67 virtual SkColor ActiveFrameColor() const OVERRIDE;
68 virtual SkColor InactiveFrameColor() const OVERRIDE;
69 virtual gfx::Insets GetFrameInsets() const OVERRIDE;
70 virtual void ShowWithApp() OVERRIDE;
71 virtual void HideWithApp() OVERRIDE;
72 virtual void UpdateShelfMenu() OVERRIDE;
73 virtual gfx::Size GetContentMinimumSize() const OVERRIDE;
74 virtual gfx::Size GetContentMaximumSize() const OVERRIDE;
75 virtual void SetContentSizeConstraints(const gfx::Size& min_size,
76 const gfx::Size& max_size) OVERRIDE;
77 virtual bool CanHaveAlphaEnabled() const OVERRIDE;
78
79 private:
80 aura::Window* GetWindow() const;
81
82 AppWindow* app_window_;
83
84 DISALLOW_COPY_AND_ASSIGN(ShellNativeAppWindow);
85 };
86
87 } // namespace extensions
88
89 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_NATIVE_APP_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698