| 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 CHROME_BROWSER_UI_APPS_CHROME_APP_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_APPS_CHROME_APP_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_APPS_CHROME_APP_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_APPS_CHROME_APP_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "content/public/browser/notification_observer.h" | 10 #include "content/public/browser/notification_observer.h" |
| 11 #include "content/public/browser/notification_registrar.h" | 11 #include "content/public/browser/notification_registrar.h" |
| 12 #include "extensions/browser/app_window/app_delegate.h" | 12 #include "extensions/browser/app_window/app_delegate.h" |
| 13 #include "ui/base/window_open_disposition.h" | 13 #include "ui/base/window_open_disposition.h" |
| 14 #include "ui/gfx/rect.h" | 14 #include "ui/gfx/geometry/rect.h" |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 class BrowserContext; | 17 class BrowserContext; |
| 18 class WebContents; | 18 class WebContents; |
| 19 } | 19 } |
| 20 | 20 |
| 21 class ScopedKeepAlive; | 21 class ScopedKeepAlive; |
| 22 | 22 |
| 23 class ChromeAppDelegate : public extensions::AppDelegate, | 23 class ChromeAppDelegate : public extensions::AppDelegate, |
| 24 public content::NotificationObserver { | 24 public content::NotificationObserver { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 scoped_ptr<ScopedKeepAlive> keep_alive_; | 75 scoped_ptr<ScopedKeepAlive> keep_alive_; |
| 76 scoped_ptr<NewWindowContentsDelegate> new_window_contents_delegate_; | 76 scoped_ptr<NewWindowContentsDelegate> new_window_contents_delegate_; |
| 77 base::Closure terminating_callback_; | 77 base::Closure terminating_callback_; |
| 78 content::NotificationRegistrar registrar_; | 78 content::NotificationRegistrar registrar_; |
| 79 | 79 |
| 80 DISALLOW_COPY_AND_ASSIGN(ChromeAppDelegate); | 80 DISALLOW_COPY_AND_ASSIGN(ChromeAppDelegate); |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 #endif // CHROME_BROWSER_UI_APPS_CHROME_APP_DELEGATE_H_ | 83 #endif // CHROME_BROWSER_UI_APPS_CHROME_APP_DELEGATE_H_ |
| OLD | NEW |