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

Side by Side Diff: ui/views/views_delegate.h

Issue 2485083003: views: add layout delegates (Closed)
Patch Set: fix msvc compile 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 | « chrome/browser/ui/views/login_view.cc ('k') | ui/views/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 UI_VIEWS_VIEWS_DELEGATE_H_ 5 #ifndef UI_VIEWS_VIEWS_DELEGATE_H_
6 #define UI_VIEWS_VIEWS_DELEGATE_H_ 6 #define UI_VIEWS_VIEWS_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // not changed, |callback| is never run. 186 // not changed, |callback| is never run.
187 // 187 //
188 // The return value is a bitmask of AppbarAutohideEdge. 188 // The return value is a bitmask of AppbarAutohideEdge.
189 virtual int GetAppbarAutohideEdges(HMONITOR monitor, 189 virtual int GetAppbarAutohideEdges(HMONITOR monitor,
190 const base::Closure& callback); 190 const base::Closure& callback);
191 #endif 191 #endif
192 192
193 // Returns a blocking pool task runner given a TaskRunnerType. 193 // Returns a blocking pool task runner given a TaskRunnerType.
194 virtual scoped_refptr<base::TaskRunner> GetBlockingPoolTaskRunner(); 194 virtual scoped_refptr<base::TaskRunner> GetBlockingPoolTaskRunner();
195 195
196 // Returns the insets that should be applied around a DialogClientView.
197 virtual gfx::Insets GetDialogButtonInsets();
198
199 // Returns the spacing between a pair of related horizontal buttons, used for
200 // dialog layout.
201 virtual int GetDialogRelatedButtonHorizontalSpacing();
202
196 protected: 203 protected:
197 ViewsDelegate(); 204 ViewsDelegate();
198 205
199 private: 206 private:
200 std::unique_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_; 207 std::unique_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_;
201 208
202 #if defined(USE_AURA) 209 #if defined(USE_AURA)
203 std::unique_ptr<TouchSelectionMenuRunnerViews> touch_selection_menu_runner_; 210 std::unique_ptr<TouchSelectionMenuRunnerViews> touch_selection_menu_runner_;
204 #endif 211 #endif
205 212
206 NativeWidgetFactory native_widget_factory_; 213 NativeWidgetFactory native_widget_factory_;
207 214
208 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); 215 DISALLOW_COPY_AND_ASSIGN(ViewsDelegate);
209 }; 216 };
210 217
211 } // namespace views 218 } // namespace views
212 219
213 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ 220 #endif // UI_VIEWS_VIEWS_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/login_view.cc ('k') | ui/views/views_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698