| OLD | NEW |
| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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() const override; | 65 gfx::Insets GetDialogButtonInsets() const override; |
| 66 int GetDialogCloseButtonMargin() const override; | 66 int GetDialogCloseButtonMargin() const override; |
| 67 int GetDialogRelatedButtonHorizontalSpacing() const override; | 67 int GetDialogRelatedButtonHorizontalSpacing() const override; |
| 68 int GetDialogRelatedControlVerticalSpacing() const override; | 68 int GetDialogRelatedControlVerticalSpacing() const override; |
| 69 gfx::Insets GetDialogFrameViewInsets() const override; | 69 gfx::Insets GetDialogFrameViewInsets() const override; |
| 70 gfx::Insets GetBubbleDialogMargins() const override; | 70 gfx::Insets GetBubbleDialogMargins() const override; |
| 71 int GetButtonMinimumWidth() const override; |
| 71 int GetDialogButtonMinimumWidth() const override; | 72 int GetDialogButtonMinimumWidth() const override; |
| 72 int GetButtonHorizontalPadding() const override; | 73 int GetButtonHorizontalPadding() const override; |
| 73 | 74 |
| 74 private: | 75 private: |
| 75 #if defined(OS_WIN) | 76 #if defined(OS_WIN) |
| 76 typedef std::map<HMONITOR, int> AppbarAutohideEdgeMap; | 77 typedef std::map<HMONITOR, int> AppbarAutohideEdgeMap; |
| 77 | 78 |
| 78 // Callback on main thread with the edges. |returned_edges| is the value that | 79 // Callback on main thread with the edges. |returned_edges| is the value that |
| 79 // was returned from the call to GetAutohideEdges() that initiated the lookup. | 80 // was returned from the call to GetAutohideEdges() that initiated the lookup. |
| 80 void OnGotAppbarAutohideEdges(const base::Closure& callback, | 81 void OnGotAppbarAutohideEdges(const base::Closure& callback, |
| (...skipping 20 matching lines...) Expand all Loading... |
| 101 // GetAutohideEdges().start a new query. | 102 // GetAutohideEdges().start a new query. |
| 102 bool in_autohide_edges_callback_; | 103 bool in_autohide_edges_callback_; |
| 103 | 104 |
| 104 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_; | 105 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_; |
| 105 #endif | 106 #endif |
| 106 | 107 |
| 107 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); | 108 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); |
| 108 }; | 109 }; |
| 109 | 110 |
| 110 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ | 111 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ |
| OLD | NEW |