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

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

Issue 297123002: API proposal for chrome.app.window to intercept all keys. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update based on Ananta's CR comments. Created 6 years 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_NATIVE_APP_WINDOW_H_ 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_NATIVE_APP_WINDOW_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_NATIVE_APP_WINDOW_H_ 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_NATIVE_APP_WINDOW_H_
7 7
8 #include "extensions/browser/app_window/app_window.h" 8 #include "extensions/browser/app_window/app_window.h"
9 #include "extensions/browser/app_window/native_app_window.h" 9 #include "extensions/browser/app_window/native_app_window.h"
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // NativeAppWindow overrides: 52 // NativeAppWindow overrides:
53 void SetFullscreen(int fullscreen_types) override; 53 void SetFullscreen(int fullscreen_types) override;
54 bool IsFullscreenOrPending() const override; 54 bool IsFullscreenOrPending() const override;
55 void UpdateWindowIcon() override; 55 void UpdateWindowIcon() override;
56 void UpdateWindowTitle() override; 56 void UpdateWindowTitle() override;
57 void UpdateBadgeIcon() override; 57 void UpdateBadgeIcon() override;
58 void UpdateDraggableRegions( 58 void UpdateDraggableRegions(
59 const std::vector<DraggableRegion>& regions) override; 59 const std::vector<DraggableRegion>& regions) override;
60 SkRegion* GetDraggableRegion() override; 60 SkRegion* GetDraggableRegion() override;
61 void UpdateShape(scoped_ptr<SkRegion> region) override; 61 void UpdateShape(scoped_ptr<SkRegion> region) override;
62 void SetInterceptAllKeys(bool want_all_keys) override;
62 void HandleKeyboardEvent( 63 void HandleKeyboardEvent(
63 const content::NativeWebKeyboardEvent& event) override; 64 const content::NativeWebKeyboardEvent& event) override;
64 bool IsFrameless() const override; 65 bool IsFrameless() const override;
65 bool HasFrameColor() const override; 66 bool HasFrameColor() const override;
66 SkColor ActiveFrameColor() const override; 67 SkColor ActiveFrameColor() const override;
67 SkColor InactiveFrameColor() const override; 68 SkColor InactiveFrameColor() const override;
68 gfx::Insets GetFrameInsets() const override; 69 gfx::Insets GetFrameInsets() const override;
69 void ShowWithApp() override; 70 void ShowWithApp() override;
70 void HideWithApp() override; 71 void HideWithApp() override;
71 void UpdateShelfMenu() override; 72 void UpdateShelfMenu() override;
72 gfx::Size GetContentMinimumSize() const override; 73 gfx::Size GetContentMinimumSize() const override;
73 gfx::Size GetContentMaximumSize() const override; 74 gfx::Size GetContentMaximumSize() const override;
74 void SetContentSizeConstraints(const gfx::Size& min_size, 75 void SetContentSizeConstraints(const gfx::Size& min_size,
75 const gfx::Size& max_size) override; 76 const gfx::Size& max_size) override;
76 void SetVisibleOnAllWorkspaces(bool always_visible) override; 77 void SetVisibleOnAllWorkspaces(bool always_visible) override;
77 bool CanHaveAlphaEnabled() const override; 78 bool CanHaveAlphaEnabled() const override;
78 79
79 private: 80 private:
80 aura::Window* GetWindow() const; 81 aura::Window* GetWindow() const;
81 82
82 AppWindow* app_window_; 83 AppWindow* app_window_;
83 84
84 DISALLOW_COPY_AND_ASSIGN(ShellNativeAppWindow); 85 DISALLOW_COPY_AND_ASSIGN(ShellNativeAppWindow);
85 }; 86 };
86 87
87 } // namespace extensions 88 } // namespace extensions
88 89
89 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_NATIVE_APP_WINDOW_H_ 90 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_NATIVE_APP_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698