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

Side by Side Diff: extensions/browser/app_window/app_window.h

Issue 2804623004: arc: Restore Chrome badging for apps that have peer in Android apps. (Closed)
Patch Set: minor updates Created 3 years, 8 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
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 EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_ 5 #ifndef EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_
6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_ 6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 void RestoreAlwaysOnTop(); 353 void RestoreAlwaysOnTop();
354 354
355 // Retrieve the current state of the app window as a dictionary, to pass to 355 // Retrieve the current state of the app window as a dictionary, to pass to
356 // the renderer. 356 // the renderer.
357 void GetSerializedState(base::DictionaryValue* properties) const; 357 void GetSerializedState(base::DictionaryValue* properties) const;
358 358
359 // Notifies the window's contents that the render view is ready and it can 359 // Notifies the window's contents that the render view is ready and it can
360 // unblock resource requests. 360 // unblock resource requests.
361 void NotifyRenderViewReady(); 361 void NotifyRenderViewReady();
362 362
363 // Returns true if window has custom icon in case either |window_icon_url_| or
364 // |app_icon_url_| is set. Custom icon may be not loaded yet.
365 bool HasCustomIcon() const;
366
363 // Whether the app window wants to be alpha enabled. 367 // Whether the app window wants to be alpha enabled.
364 bool requested_alpha_enabled() const { return requested_alpha_enabled_; } 368 bool requested_alpha_enabled() const { return requested_alpha_enabled_; }
365 369
366 // Whether the app window is created by IME extensions. 370 // Whether the app window is created by IME extensions.
367 // TODO(bshe): rename to hide_app_window_in_launcher if it is not used 371 // TODO(bshe): rename to hide_app_window_in_launcher if it is not used
368 // anywhere other than app_window_launcher_controller after M45. Otherwise, 372 // anywhere other than app_window_launcher_controller after M45. Otherwise,
369 // remove this TODO. 373 // remove this TODO.
370 bool is_ime_window() const { return is_ime_window_; } 374 bool is_ime_window() const { return is_ime_window_; }
371 375
372 bool show_in_shelf() const { return show_in_shelf_; } 376 bool show_in_shelf() const { return show_in_shelf_; }
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 base::Closure on_first_commit_callback_; 577 base::Closure on_first_commit_callback_;
574 578
575 base::WeakPtrFactory<AppWindow> image_loader_ptr_factory_; 579 base::WeakPtrFactory<AppWindow> image_loader_ptr_factory_;
576 580
577 DISALLOW_COPY_AND_ASSIGN(AppWindow); 581 DISALLOW_COPY_AND_ASSIGN(AppWindow);
578 }; 582 };
579 583
580 } // namespace extensions 584 } // namespace extensions
581 585
582 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_ 586 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/platform_apps/app_icon/test.js ('k') | extensions/browser/app_window/app_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698