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