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_APP_WINDOW_H_ | 5 #ifndef APPS_APP_WINDOW_H_ |
6 #define APPS_APP_WINDOW_H_ | 6 #define APPS_APP_WINDOW_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "chrome/browser/sessions/session_id.h" | 10 #include "chrome/browser/sessions/session_id.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 class AppWindowContents { | 54 class AppWindowContents { |
55 public: | 55 public: |
56 AppWindowContents() {} | 56 AppWindowContents() {} |
57 virtual ~AppWindowContents() {} | 57 virtual ~AppWindowContents() {} |
58 | 58 |
59 // Called to initialize the WebContents, before the app window is created. | 59 // Called to initialize the WebContents, before the app window is created. |
60 virtual void Initialize(content::BrowserContext* context, | 60 virtual void Initialize(content::BrowserContext* context, |
61 const GURL& url) = 0; | 61 const GURL& url) = 0; |
62 | 62 |
63 // Called to load the contents, after the app window is created. | 63 // Called to load the contents, after the app window is created. |
64 virtual void LoadContents(int32 creator_process_id) = 0; | 64 virtual void LoadContents() = 0; |
65 | 65 |
66 // Called when the native window changes. | 66 // Called when the native window changes. |
67 virtual void NativeWindowChanged(NativeAppWindow* native_app_window) = 0; | 67 virtual void NativeWindowChanged(NativeAppWindow* native_app_window) = 0; |
68 | 68 |
69 // Called when the native window closes. | 69 // Called when the native window closes. |
70 virtual void NativeWindowClosed() = 0; | 70 virtual void NativeWindowClosed() = 0; |
71 | 71 |
72 // Called in tests when the window is shown | 72 // Called in tests when the window is shown |
73 virtual void DispatchWindowShownForTests() const = 0; | 73 virtual void DispatchWindowShownForTests() const = 0; |
74 | 74 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 // The initial content/inner bounds specification (excluding any window | 152 // The initial content/inner bounds specification (excluding any window |
153 // decorations). | 153 // decorations). |
154 BoundsSpecification content_spec; | 154 BoundsSpecification content_spec; |
155 | 155 |
156 // The initial window/outer bounds specification (including window | 156 // The initial window/outer bounds specification (including window |
157 // decorations). | 157 // decorations). |
158 BoundsSpecification window_spec; | 158 BoundsSpecification window_spec; |
159 | 159 |
160 std::string window_key; | 160 std::string window_key; |
161 | 161 |
162 // The process ID of the process that requested the create. | |
163 int32 creator_process_id; | |
164 | |
165 // Initial state of the window. | 162 // Initial state of the window. |
166 ui::WindowShowState state; | 163 ui::WindowShowState state; |
167 | 164 |
168 // If true, don't show the window after creation. | 165 // If true, don't show the window after creation. |
169 bool hidden; | 166 bool hidden; |
170 | 167 |
171 // If true, the window will be resizable by the user. Defaults to true. | 168 // If true, the window will be resizable by the user. Defaults to true. |
172 bool resizable; | 169 bool resizable; |
173 | 170 |
174 // If true, the window will be focused on creation. Defaults to true. | 171 // If true, the window will be focused on creation. Defaults to true. |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 // reinstated when the window exits fullscreen and moves away from the | 554 // reinstated when the window exits fullscreen and moves away from the |
558 // taskbar. | 555 // taskbar. |
559 bool cached_always_on_top_; | 556 bool cached_always_on_top_; |
560 | 557 |
561 DISALLOW_COPY_AND_ASSIGN(AppWindow); | 558 DISALLOW_COPY_AND_ASSIGN(AppWindow); |
562 }; | 559 }; |
563 | 560 |
564 } // namespace apps | 561 } // namespace apps |
565 | 562 |
566 #endif // APPS_APP_WINDOW_H_ | 563 #endif // APPS_APP_WINDOW_H_ |
OLD | NEW |