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

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

Issue 2571613002: Convert Register Protocol Handler dialog for Harmony/Material Design (Closed)
Patch Set: More fixed nits 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 | « 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 ui::ContextFactoryPrivate* GetContextFactoryPrivate() override; 57 ui::ContextFactoryPrivate* GetContextFactoryPrivate() override;
58 std::string GetApplicationName() override; 58 std::string GetApplicationName() override;
59 #if defined(OS_WIN) 59 #if defined(OS_WIN)
60 int GetAppbarAutohideEdges(HMONITOR monitor, 60 int GetAppbarAutohideEdges(HMONITOR monitor,
61 const base::Closure& callback) override; 61 const base::Closure& callback) override;
62 #endif 62 #endif
63 scoped_refptr<base::TaskRunner> GetBlockingPoolTaskRunner() override; 63 scoped_refptr<base::TaskRunner> GetBlockingPoolTaskRunner() override;
64 64
65 gfx::Insets GetDialogButtonInsets() override; 65 gfx::Insets GetDialogButtonInsets() override;
66 int GetDialogRelatedButtonHorizontalSpacing() override; 66 int GetDialogRelatedButtonHorizontalSpacing() override;
67 int GetDialogRelatedControlVerticalSpacing() override;
67 gfx::Insets GetDialogFrameViewInsets() override; 68 gfx::Insets GetDialogFrameViewInsets() override;
69 gfx::Insets GetBubbleDialogMargins() override;
68 70
69 private: 71 private:
70 #if defined(OS_WIN) 72 #if defined(OS_WIN)
71 typedef std::map<HMONITOR, int> AppbarAutohideEdgeMap; 73 typedef std::map<HMONITOR, int> AppbarAutohideEdgeMap;
72 74
73 // Callback on main thread with the edges. |returned_edges| is the value that 75 // Callback on main thread with the edges. |returned_edges| is the value that
74 // was returned from the call to GetAutohideEdges() that initiated the lookup. 76 // was returned from the call to GetAutohideEdges() that initiated the lookup.
75 void OnGotAppbarAutohideEdges(const base::Closure& callback, 77 void OnGotAppbarAutohideEdges(const base::Closure& callback,
76 HMONITOR monitor, 78 HMONITOR monitor,
77 int returned_edges, 79 int returned_edges,
(...skipping 18 matching lines...) Expand all
96 // GetAutohideEdges().start a new query. 98 // GetAutohideEdges().start a new query.
97 bool in_autohide_edges_callback_; 99 bool in_autohide_edges_callback_;
98 100
99 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_; 101 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_;
100 #endif 102 #endif
101 103
102 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); 104 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate);
103 }; 105 };
104 106
105 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ 107 #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