| 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 APPS_UI_VIEWS_NATIVE_APP_WINDOW_VIEWS_H_ | 5 #ifndef APPS_UI_VIEWS_NATIVE_APP_WINDOW_VIEWS_H_ |
| 6 #define APPS_UI_VIEWS_NATIVE_APP_WINDOW_VIEWS_H_ | 6 #define APPS_UI_VIEWS_NATIVE_APP_WINDOW_VIEWS_H_ |
| 7 | 7 |
| 8 #include "apps/size_constraints.h" | |
| 9 #include "apps/ui/native_app_window.h" | 8 #include "apps/ui/native_app_window.h" |
| 10 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
| 11 #include "content/public/browser/web_contents_observer.h" | 10 #include "content/public/browser/web_contents_observer.h" |
| 11 #include "extensions/browser/app_window/size_constraints.h" |
| 12 #include "ui/gfx/rect.h" | 12 #include "ui/gfx/rect.h" |
| 13 #include "ui/views/controls/webview/unhandled_keyboard_event_handler.h" | 13 #include "ui/views/controls/webview/unhandled_keyboard_event_handler.h" |
| 14 #include "ui/views/widget/widget.h" | 14 #include "ui/views/widget/widget.h" |
| 15 #include "ui/views/widget/widget_delegate.h" | 15 #include "ui/views/widget/widget_delegate.h" |
| 16 #include "ui/views/widget/widget_observer.h" | 16 #include "ui/views/widget/widget_observer.h" |
| 17 | 17 |
| 18 class SkRegion; | 18 class SkRegion; |
| 19 | 19 |
| 20 namespace content { | 20 namespace content { |
| 21 class BrowserContext; | 21 class BrowserContext; |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 void OnViewWasResized(); | 175 void OnViewWasResized(); |
| 176 | 176 |
| 177 AppWindow* app_window_; // Not owned. | 177 AppWindow* app_window_; // Not owned. |
| 178 views::WebView* web_view_; | 178 views::WebView* web_view_; |
| 179 views::Widget* widget_; | 179 views::Widget* widget_; |
| 180 | 180 |
| 181 scoped_ptr<SkRegion> draggable_region_; | 181 scoped_ptr<SkRegion> draggable_region_; |
| 182 | 182 |
| 183 bool frameless_; | 183 bool frameless_; |
| 184 bool resizable_; | 184 bool resizable_; |
| 185 apps::SizeConstraints size_constraints_; | 185 extensions::SizeConstraints size_constraints_; |
| 186 | 186 |
| 187 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; | 187 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; |
| 188 | 188 |
| 189 ObserverList<web_modal::ModalDialogHostObserver> observer_list_; | 189 ObserverList<web_modal::ModalDialogHostObserver> observer_list_; |
| 190 | 190 |
| 191 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews); | 191 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews); |
| 192 }; | 192 }; |
| 193 | 193 |
| 194 } // namespace apps | 194 } // namespace apps |
| 195 | 195 |
| 196 #endif // APPS_UI_VIEWS_NATIVE_APP_WINDOW_VIEWS_H_ | 196 #endif // APPS_UI_VIEWS_NATIVE_APP_WINDOW_VIEWS_H_ |
| OLD | NEW |