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

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

Issue 1316013004: Remove "API proposal for chrome.app.window to intercept all keys." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync to TOT Created 5 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
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 // NativeAppWindow overrides: 46 // NativeAppWindow overrides:
47 void SetFullscreen(int fullscreen_types) override; 47 void SetFullscreen(int fullscreen_types) override;
48 bool IsFullscreenOrPending() const override; 48 bool IsFullscreenOrPending() const override;
49 void UpdateWindowIcon() override; 49 void UpdateWindowIcon() override;
50 void UpdateWindowTitle() override; 50 void UpdateWindowTitle() override;
51 void UpdateDraggableRegions( 51 void UpdateDraggableRegions(
52 const std::vector<DraggableRegion>& regions) override; 52 const std::vector<DraggableRegion>& regions) override;
53 SkRegion* GetDraggableRegion() override; 53 SkRegion* GetDraggableRegion() override;
54 void UpdateShape(scoped_ptr<SkRegion> region) override; 54 void UpdateShape(scoped_ptr<SkRegion> region) override;
55 void SetInterceptAllKeys(bool want_all_keys) override;
56 void HandleKeyboardEvent( 55 void HandleKeyboardEvent(
57 const content::NativeWebKeyboardEvent& event) override; 56 const content::NativeWebKeyboardEvent& event) override;
58 bool IsFrameless() const override; 57 bool IsFrameless() const override;
59 bool HasFrameColor() const override; 58 bool HasFrameColor() const override;
60 SkColor ActiveFrameColor() const override; 59 SkColor ActiveFrameColor() const override;
61 SkColor InactiveFrameColor() const override; 60 SkColor InactiveFrameColor() const override;
62 gfx::Insets GetFrameInsets() const override; 61 gfx::Insets GetFrameInsets() const override;
63 void ShowWithApp() override; 62 void ShowWithApp() override;
64 void HideWithApp() override; 63 void HideWithApp() override;
65 gfx::Size GetContentMinimumSize() const override; 64 gfx::Size GetContentMinimumSize() const override;
66 gfx::Size GetContentMaximumSize() const override; 65 gfx::Size GetContentMaximumSize() const override;
67 void SetContentSizeConstraints(const gfx::Size& min_size, 66 void SetContentSizeConstraints(const gfx::Size& min_size,
68 const gfx::Size& max_size) override; 67 const gfx::Size& max_size) override;
69 void SetVisibleOnAllWorkspaces(bool always_visible) override; 68 void SetVisibleOnAllWorkspaces(bool always_visible) override;
70 bool CanHaveAlphaEnabled() const override; 69 bool CanHaveAlphaEnabled() const override;
71 70
72 private: 71 private:
73 AppWindow* app_window_; 72 AppWindow* app_window_;
74 73
75 DISALLOW_COPY_AND_ASSIGN(ShellNativeAppWindow); 74 DISALLOW_COPY_AND_ASSIGN(ShellNativeAppWindow);
76 }; 75 };
77 76
78 } // namespace extensions 77 } // namespace extensions
79 78
80 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_NATIVE_APP_WINDOW_H_ 79 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_NATIVE_APP_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698