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

Side by Side Diff: chrome/browser/ui/views/chrome_views_delegate.h

Issue 1438513003: [MD] Implement incognito colors as a NativeTheme (for Aura). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win, linux, android compiles issues Created 5 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_VIEWS_CHROME_VIEWS_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_
6 #define CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) 52 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
53 bool WindowManagerProvidesTitleBar(bool maximized) override; 53 bool WindowManagerProvidesTitleBar(bool maximized) override;
54 #endif 54 #endif
55 ui::ContextFactory* GetContextFactory() override; 55 ui::ContextFactory* GetContextFactory() override;
56 std::string GetApplicationName() override; 56 std::string GetApplicationName() override;
57 #if defined(OS_WIN) 57 #if defined(OS_WIN)
58 int GetAppbarAutohideEdges(HMONITOR monitor, 58 int GetAppbarAutohideEdges(HMONITOR monitor,
59 const base::Closure& callback) override; 59 const base::Closure& callback) override;
60 #endif 60 #endif
61 scoped_refptr<base::TaskRunner> GetBlockingPoolTaskRunner() override; 61 scoped_refptr<base::TaskRunner> GetBlockingPoolTaskRunner() override;
62 ui::NativeTheme* GetNativeThemeOverride(const views::Widget* widget) override;
62 63
63 private: 64 private:
64 #if defined(OS_WIN) 65 #if defined(OS_WIN)
65 typedef std::map<HMONITOR, int> AppbarAutohideEdgeMap; 66 typedef std::map<HMONITOR, int> AppbarAutohideEdgeMap;
66 67
67 // Callback on main thread with the edges. |returned_edges| is the value that 68 // Callback on main thread with the edges. |returned_edges| is the value that
68 // was returned from the call to GetAutohideEdges() that initiated the lookup. 69 // was returned from the call to GetAutohideEdges() that initiated the lookup.
69 void OnGotAppbarAutohideEdges(const base::Closure& callback, 70 void OnGotAppbarAutohideEdges(const base::Closure& callback,
70 HMONITOR monitor, 71 HMONITOR monitor,
71 int returned_edges, 72 int returned_edges,
(...skipping 11 matching lines...) Expand all
83 // GetAutohideEdges().start a new query. 84 // GetAutohideEdges().start a new query.
84 bool in_autohide_edges_callback_; 85 bool in_autohide_edges_callback_;
85 86
86 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_; 87 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_;
87 #endif 88 #endif
88 89
89 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); 90 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate);
90 }; 91 };
91 92
92 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ 93 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698