| OLD | NEW |
| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 UpdateBadgeIcon() override; | 51 void UpdateBadgeIcon() override; |
| 52 void UpdateDraggableRegions( | 52 void UpdateDraggableRegions( |
| 53 const std::vector<DraggableRegion>& regions) override; | 53 const std::vector<DraggableRegion>& regions) override; |
| 54 SkRegion* GetDraggableRegion() override; | 54 SkRegion* GetDraggableRegion() override; |
| 55 void UpdateShape(scoped_ptr<SkRegion> region) override; | 55 void UpdateShape(scoped_ptr<SkRegion> region) override; |
| 56 void SetInterceptAllKeys(bool want_all_keys) override; | 56 void SetInterceptAllKeys(bool want_all_keys) override; |
| 57 bool PreHandleKeyboardEvent(content::WebContents* source, |
| 58 const content::NativeWebKeyboardEvent& event, |
| 59 bool* is_keyboard_shortcut) override; |
| 57 void HandleKeyboardEvent( | 60 void HandleKeyboardEvent( |
| 58 const content::NativeWebKeyboardEvent& event) override; | 61 const content::NativeWebKeyboardEvent& event) override; |
| 59 bool IsFrameless() const override; | 62 bool IsFrameless() const override; |
| 60 bool HasFrameColor() const override; | 63 bool HasFrameColor() const override; |
| 61 SkColor ActiveFrameColor() const override; | 64 SkColor ActiveFrameColor() const override; |
| 62 SkColor InactiveFrameColor() const override; | 65 SkColor InactiveFrameColor() const override; |
| 63 gfx::Insets GetFrameInsets() const override; | 66 gfx::Insets GetFrameInsets() const override; |
| 64 void ShowWithApp() override; | 67 void ShowWithApp() override; |
| 65 void HideWithApp() override; | 68 void HideWithApp() override; |
| 66 void UpdateShelfMenu() override; | 69 void UpdateShelfMenu() override; |
| 67 gfx::Size GetContentMinimumSize() const override; | 70 gfx::Size GetContentMinimumSize() const override; |
| 68 gfx::Size GetContentMaximumSize() const override; | 71 gfx::Size GetContentMaximumSize() const override; |
| 69 void SetContentSizeConstraints(const gfx::Size& min_size, | 72 void SetContentSizeConstraints(const gfx::Size& min_size, |
| 70 const gfx::Size& max_size) override; | 73 const gfx::Size& max_size) override; |
| 71 void SetVisibleOnAllWorkspaces(bool always_visible) override; | 74 void SetVisibleOnAllWorkspaces(bool always_visible) override; |
| 72 bool CanHaveAlphaEnabled() const override; | 75 bool CanHaveAlphaEnabled() const override; |
| 73 | 76 |
| 74 private: | 77 private: |
| 75 AppWindow* app_window_; | 78 AppWindow* app_window_; |
| 76 | 79 |
| 77 DISALLOW_COPY_AND_ASSIGN(ShellNativeAppWindow); | 80 DISALLOW_COPY_AND_ASSIGN(ShellNativeAppWindow); |
| 78 }; | 81 }; |
| 79 | 82 |
| 80 } // namespace extensions | 83 } // namespace extensions |
| 81 | 84 |
| 82 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_NATIVE_APP_WINDOW_H_ | 85 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_NATIVE_APP_WINDOW_H_ |
| OLD | NEW |