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

Side by Side Diff: chrome/browser/ui/libgtkui/native_theme_gtk3.h

Issue 2628043002: Gtk3: Render a GtkHeaderBar as the background of the tab strip (Closed)
Patch Set: Guard kFrameTopArea with #if defined(OS_LINUX) && !defined(OS_CHROMEOS) Created 3 years, 11 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
« no previous file with comments | « chrome/browser/ui/libgtkui/gtk_util.cc ('k') | chrome/browser/ui/libgtkui/native_theme_gtk3.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK3_H_ 5 #ifndef CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK3_H_
6 #define CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK3_H_ 6 #define CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK3_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/optional.h" 9 #include "base/optional.h"
10 #include "ui/native_theme/native_theme_base.h" 10 #include "ui/native_theme/native_theme_base.h"
(...skipping 12 matching lines...) Expand all
23 SkColor GetSystemColor(ColorId color_id) const override; 23 SkColor GetSystemColor(ColorId color_id) const override;
24 void PaintMenuPopupBackground( 24 void PaintMenuPopupBackground(
25 SkCanvas* canvas, 25 SkCanvas* canvas,
26 const gfx::Size& size, 26 const gfx::Size& size,
27 const MenuBackgroundExtraParams& menu_background) const override; 27 const MenuBackgroundExtraParams& menu_background) const override;
28 void PaintMenuItemBackground( 28 void PaintMenuItemBackground(
29 SkCanvas* canvas, 29 SkCanvas* canvas,
30 State state, 30 State state,
31 const gfx::Rect& rect, 31 const gfx::Rect& rect,
32 const MenuItemExtraParams& menu_item) const override; 32 const MenuItemExtraParams& menu_item) const override;
33 void PaintFrameTopArea(
34 SkCanvas* canvas,
35 State state,
36 const gfx::Rect& rect,
37 const FrameTopAreaExtraParams& frame_top_area) const override;
33 38
34 private: 39 private:
35 NativeThemeGtk3(); 40 NativeThemeGtk3();
36 ~NativeThemeGtk3() override; 41 ~NativeThemeGtk3() override;
37 42
38 mutable base::Optional<SkColor> color_cache_[kColorId_NumColors]; 43 mutable base::Optional<SkColor> color_cache_[kColorId_NumColors];
39 44
40 DISALLOW_COPY_AND_ASSIGN(NativeThemeGtk3); 45 DISALLOW_COPY_AND_ASSIGN(NativeThemeGtk3);
41 }; 46 };
42 47
43 } // namespace libgtkui 48 } // namespace libgtkui
44 49
45 #endif // CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK3_H_ 50 #endif // CHROME_BROWSER_UI_LIBGTKUI_NATIVE_THEME_GTK3_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/libgtkui/gtk_util.cc ('k') | chrome/browser/ui/libgtkui/native_theme_gtk3.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698