| 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_COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_VIEWS_H_ | 5 #ifndef EXTENSIONS_COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_VIEWS_H_ |
| 6 #define EXTENSIONS_COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_VIEWS_H_ | 6 #define EXTENSIONS_COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_VIEWS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 SkColor InactiveFrameColor() const override; | 140 SkColor InactiveFrameColor() const override; |
| 141 gfx::Insets GetFrameInsets() const override; | 141 gfx::Insets GetFrameInsets() const override; |
| 142 void HideWithApp() override; | 142 void HideWithApp() override; |
| 143 void ShowWithApp() override; | 143 void ShowWithApp() override; |
| 144 gfx::Size GetContentMinimumSize() const override; | 144 gfx::Size GetContentMinimumSize() const override; |
| 145 gfx::Size GetContentMaximumSize() const override; | 145 gfx::Size GetContentMaximumSize() const override; |
| 146 void SetContentSizeConstraints(const gfx::Size& min_size, | 146 void SetContentSizeConstraints(const gfx::Size& min_size, |
| 147 const gfx::Size& max_size) override; | 147 const gfx::Size& max_size) override; |
| 148 bool CanHaveAlphaEnabled() const override; | 148 bool CanHaveAlphaEnabled() const override; |
| 149 void SetVisibleOnAllWorkspaces(bool always_visible) override; | 149 void SetVisibleOnAllWorkspaces(bool always_visible) override; |
| 150 void SetActivateOnPointer(bool activate_on_pointer) override; |
| 150 | 151 |
| 151 // web_modal::WebContentsModalDialogHost implementation. | 152 // web_modal::WebContentsModalDialogHost implementation. |
| 152 gfx::NativeView GetHostView() const override; | 153 gfx::NativeView GetHostView() const override; |
| 153 gfx::Point GetDialogPosition(const gfx::Size& size) override; | 154 gfx::Point GetDialogPosition(const gfx::Size& size) override; |
| 154 gfx::Size GetMaximumDialogSize() override; | 155 gfx::Size GetMaximumDialogSize() override; |
| 155 void AddObserver(web_modal::ModalDialogHostObserver* observer) override; | 156 void AddObserver(web_modal::ModalDialogHostObserver* observer) override; |
| 156 void RemoveObserver(web_modal::ModalDialogHostObserver* observer) override; | 157 void RemoveObserver(web_modal::ModalDialogHostObserver* observer) override; |
| 157 | 158 |
| 158 private: | 159 private: |
| 159 // Informs modal dialogs that they need to update their positions. | 160 // Informs modal dialogs that they need to update their positions. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 172 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; | 173 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; |
| 173 | 174 |
| 174 base::ObserverList<web_modal::ModalDialogHostObserver> observer_list_; | 175 base::ObserverList<web_modal::ModalDialogHostObserver> observer_list_; |
| 175 | 176 |
| 176 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews); | 177 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews); |
| 177 }; | 178 }; |
| 178 | 179 |
| 179 } // namespace native_app_window | 180 } // namespace native_app_window |
| 180 | 181 |
| 181 #endif // EXTENSIONS_COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_VIEWS_H_ | 182 #endif // EXTENSIONS_COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_VIEWS_H_ |
| OLD | NEW |