| 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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 bool IsAlwaysOnTop() const; | 356 bool IsAlwaysOnTop() const; |
| 357 | 357 |
| 358 // Retrieve the current state of the app window as a dictionary, to pass to | 358 // Retrieve the current state of the app window as a dictionary, to pass to |
| 359 // the renderer. | 359 // the renderer. |
| 360 void GetSerializedState(base::DictionaryValue* properties) const; | 360 void GetSerializedState(base::DictionaryValue* properties) const; |
| 361 | 361 |
| 362 // Called by the window API when events can be sent to the window for this | 362 // Called by the window API when events can be sent to the window for this |
| 363 // app. | 363 // app. |
| 364 void WindowEventsReady(); | 364 void WindowEventsReady(); |
| 365 | 365 |
| 366 // Whether the app window wants a transparent background. |
| 367 bool requested_transparent_background() const { |
| 368 return requested_transparent_background_; |
| 369 } |
| 370 |
| 366 protected: | 371 protected: |
| 367 virtual ~AppWindow(); | 372 virtual ~AppWindow(); |
| 368 | 373 |
| 369 private: | 374 private: |
| 370 // PlatformAppBrowserTest needs access to web_contents() | 375 // PlatformAppBrowserTest needs access to web_contents() |
| 371 friend class extensions::PlatformAppBrowserTest; | 376 friend class extensions::PlatformAppBrowserTest; |
| 372 | 377 |
| 373 // content::WebContentsDelegate implementation. | 378 // content::WebContentsDelegate implementation. |
| 374 virtual void CloseContents(content::WebContents* contents) OVERRIDE; | 379 virtual void CloseContents(content::WebContents* contents) OVERRIDE; |
| 375 virtual bool ShouldSuppressDialogs() OVERRIDE; | 380 virtual bool ShouldSuppressDialogs() OVERRIDE; |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 // Whether the delayed Show() call was for an active or inactive window. | 561 // Whether the delayed Show() call was for an active or inactive window. |
| 557 ShowType delayed_show_type_; | 562 ShowType delayed_show_type_; |
| 558 | 563 |
| 559 // Cache the desired value of the always-on-top property. When windows enter | 564 // Cache the desired value of the always-on-top property. When windows enter |
| 560 // fullscreen or overlap the Windows taskbar, this property will be | 565 // fullscreen or overlap the Windows taskbar, this property will be |
| 561 // automatically and silently switched off for security reasons. It is | 566 // automatically and silently switched off for security reasons. It is |
| 562 // reinstated when the window exits fullscreen and moves away from the | 567 // reinstated when the window exits fullscreen and moves away from the |
| 563 // taskbar. | 568 // taskbar. |
| 564 bool cached_always_on_top_; | 569 bool cached_always_on_top_; |
| 565 | 570 |
| 571 // Whether |transparent_background| was set in the CreateParams. |
| 572 bool requested_transparent_background_; |
| 573 |
| 566 DISALLOW_COPY_AND_ASSIGN(AppWindow); | 574 DISALLOW_COPY_AND_ASSIGN(AppWindow); |
| 567 }; | 575 }; |
| 568 | 576 |
| 569 } // namespace apps | 577 } // namespace apps |
| 570 | 578 |
| 571 #endif // APPS_APP_WINDOW_H_ | 579 #endif // APPS_APP_WINDOW_H_ |
| OLD | NEW |