X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchrome%2Fbrowser%2Fui%2Fviews%2Fframe%2Fopaque_browser_frame_view_platform_specific.h;h=d3228f5b74fa0f16cb20667a47285488be82b776;hb=ff3e2503a20db9193d323c1d19c38c68004dec4a;hp=b457233388f4fd5d08f25638d8f914c586b036bd;hpb=7338fba38ba696536d1cc9d389afd716a6ab2fe6;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chrome/browser/ui/views/frame/opaque_browser_frame_view_platform_specific.h b/src/chrome/browser/ui/views/frame/opaque_browser_frame_view_platform_specific.h index b457233..d3228f5 100644 --- a/src/chrome/browser/ui/views/frame/opaque_browser_frame_view_platform_specific.h +++ b/src/chrome/browser/ui/views/frame/opaque_browser_frame_view_platform_specific.h @@ -7,16 +7,26 @@ class OpaqueBrowserFrameView; class OpaqueBrowserFrameViewLayout; +class Profile; // Handles platform specific configuration concepts. class OpaqueBrowserFrameViewPlatformSpecific { public: virtual ~OpaqueBrowserFrameViewPlatformSpecific() {} + // Returns whether we're using native system like rendering for theme + // elements. + // + // Why not just ask ThemeService::UsingNativeTheme()? Because on Windows, the + // default theme is UsingNativeTheme(). Therefore, the default implementation + // always returns false and we specifically override this on Linux. + virtual bool IsUsingNativeTheme(); + // Builds an observer for |view| and |layout|. static OpaqueBrowserFrameViewPlatformSpecific* Create( OpaqueBrowserFrameView* view, - OpaqueBrowserFrameViewLayout* layout); + OpaqueBrowserFrameViewLayout* layout, + Profile* profile); }; #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_PLATFORM_SPECIFIC_H_