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

Unified Diff: chrome/browser/ui/views/apps/native_app_window_views.h

Issue 166443004: Add frame color option to packaged app windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/apps/native_app_window_views.h
diff --git a/chrome/browser/ui/views/apps/native_app_window_views.h b/chrome/browser/ui/views/apps/native_app_window_views.h
index ebcf654e57fe3ca75c87beac48c52a29d84af64b..f8179026c80edd6a8bbf7e4d34696c9a42fa4f23 100644
--- a/chrome/browser/ui/views/apps/native_app_window_views.h
+++ b/chrome/browser/ui/views/apps/native_app_window_views.h
@@ -89,7 +89,7 @@ class NativeAppWindowViews : public apps::NativeAppWindow,
void OnViewWasResized();
- bool ShouldUseChromeStyleFrame() const;
+ bool ShouldUseNativeFrame() const;
// Caller owns the returned object.
apps::AppWindowFrameView* CreateAppWindowFrameView();
@@ -181,6 +181,8 @@ class NativeAppWindowViews : public apps::NativeAppWindow,
virtual void HandleKeyboardEvent(
const content::NativeWebKeyboardEvent& event) OVERRIDE;
virtual bool IsFrameless() const OVERRIDE;
+ virtual bool HasFrameColor() const OVERRIDE;
+ virtual SkColor FrameColor() const OVERRIDE;
virtual gfx::Insets GetFrameInsets() const OVERRIDE;
virtual void HideWithApp() OVERRIDE;
virtual void ShowWithApp() OVERRIDE;
@@ -209,6 +211,8 @@ class NativeAppWindowViews : public apps::NativeAppWindow,
scoped_ptr<SkRegion> draggable_region_;
bool frameless_;
+ bool has_frame_color_;
+ SkColor frame_color_;
bool transparent_background_;
gfx::Size preferred_size_;
bool resizable_;

Powered by Google App Engine
This is Rietveld 408576698