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

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

Issue 2505973003: harmony: use Harmony sizing for ViewsDelegate sizing functions (Closed)
Patch Set: move constant Created 4 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/chrome_views_delegate.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 (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/callback.h" 8 #include "base/callback.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 bool WindowManagerProvidesTitleBar(bool maximized) override; 54 bool WindowManagerProvidesTitleBar(bool maximized) override;
55 #endif 55 #endif
56 ui::ContextFactory* GetContextFactory() override; 56 ui::ContextFactory* GetContextFactory() override;
57 std::string GetApplicationName() override; 57 std::string GetApplicationName() override;
58 #if defined(OS_WIN) 58 #if defined(OS_WIN)
59 int GetAppbarAutohideEdges(HMONITOR monitor, 59 int GetAppbarAutohideEdges(HMONITOR monitor,
60 const base::Closure& callback) override; 60 const base::Closure& callback) override;
61 #endif 61 #endif
62 scoped_refptr<base::TaskRunner> GetBlockingPoolTaskRunner() override; 62 scoped_refptr<base::TaskRunner> GetBlockingPoolTaskRunner() override;
63 63
64 gfx::Insets GetDialogButtonInsets() override;
65 int GetDialogRelatedButtonHorizontalSpacing() override;
66
64 private: 67 private:
65 #if defined(OS_WIN) 68 #if defined(OS_WIN)
66 typedef std::map<HMONITOR, int> AppbarAutohideEdgeMap; 69 typedef std::map<HMONITOR, int> AppbarAutohideEdgeMap;
67 70
68 // Callback on main thread with the edges. |returned_edges| is the value that 71 // Callback on main thread with the edges. |returned_edges| is the value that
69 // was returned from the call to GetAutohideEdges() that initiated the lookup. 72 // was returned from the call to GetAutohideEdges() that initiated the lookup.
70 void OnGotAppbarAutohideEdges(const base::Closure& callback, 73 void OnGotAppbarAutohideEdges(const base::Closure& callback,
71 HMONITOR monitor, 74 HMONITOR monitor,
72 int returned_edges, 75 int returned_edges,
73 int edges); 76 int edges);
(...skipping 17 matching lines...) Expand all
91 // GetAutohideEdges().start a new query. 94 // GetAutohideEdges().start a new query.
92 bool in_autohide_edges_callback_; 95 bool in_autohide_edges_callback_;
93 96
94 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_; 97 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_;
95 #endif 98 #endif
96 99
97 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); 100 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate);
98 }; 101 };
99 102
100 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ 103 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/chrome_views_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698