Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(503)

Side by Side Diff: apps/app_window.h

Issue 375183002: Add app.window.alphaEnabled() and onAlphaEnabledChanged. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mac Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | apps/app_window.cc » ('j') | apps/app_window.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 bool IsAlwaysOnTop() const; 355 bool IsAlwaysOnTop() const;
356 356
357 // Retrieve the current state of the app window as a dictionary, to pass to 357 // Retrieve the current state of the app window as a dictionary, to pass to
358 // the renderer. 358 // the renderer.
359 void GetSerializedState(base::DictionaryValue* properties) const; 359 void GetSerializedState(base::DictionaryValue* properties) const;
360 360
361 // Called by the window API when events can be sent to the window for this 361 // Called by the window API when events can be sent to the window for this
362 // app. 362 // app.
363 void WindowEventsReady(); 363 void WindowEventsReady();
364 364
365 // Whether the app window wants a transparent background.
366 bool RequestedTransparentBackground() const;
367
365 protected: 368 protected:
366 virtual ~AppWindow(); 369 virtual ~AppWindow();
367 370
368 private: 371 private:
369 // PlatformAppBrowserTest needs access to web_contents() 372 // PlatformAppBrowserTest needs access to web_contents()
370 friend class extensions::PlatformAppBrowserTest; 373 friend class extensions::PlatformAppBrowserTest;
371 374
372 // content::WebContentsDelegate implementation. 375 // content::WebContentsDelegate implementation.
373 virtual void CloseContents(content::WebContents* contents) OVERRIDE; 376 virtual void CloseContents(content::WebContents* contents) OVERRIDE;
374 virtual bool ShouldSuppressDialogs() OVERRIDE; 377 virtual bool ShouldSuppressDialogs() OVERRIDE;
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 // Whether the delayed Show() call was for an active or inactive window. 554 // Whether the delayed Show() call was for an active or inactive window.
552 ShowType delayed_show_type_; 555 ShowType delayed_show_type_;
553 556
554 // Cache the desired value of the always-on-top property. When windows enter 557 // Cache the desired value of the always-on-top property. When windows enter
555 // fullscreen or overlap the Windows taskbar, this property will be 558 // fullscreen or overlap the Windows taskbar, this property will be
556 // automatically and silently switched off for security reasons. It is 559 // automatically and silently switched off for security reasons. It is
557 // reinstated when the window exits fullscreen and moves away from the 560 // reinstated when the window exits fullscreen and moves away from the
558 // taskbar. 561 // taskbar.
559 bool cached_always_on_top_; 562 bool cached_always_on_top_;
560 563
564 // Whether |transparent_background| was set in the CreateParams.
565 bool requested_transparent_background_;
566
561 DISALLOW_COPY_AND_ASSIGN(AppWindow); 567 DISALLOW_COPY_AND_ASSIGN(AppWindow);
562 }; 568 };
563 569
564 } // namespace apps 570 } // namespace apps
565 571
566 #endif // APPS_APP_WINDOW_H_ 572 #endif // APPS_APP_WINDOW_H_
OLDNEW
« no previous file with comments | « no previous file | apps/app_window.cc » ('j') | apps/app_window.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698