| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; | 64 gfx::Insets GetDialogButtonInsets() override; |
| 65 int GetDialogRelatedButtonHorizontalSpacing() override; | 65 int GetDialogRelatedButtonHorizontalSpacing() override; |
| 66 gfx::Insets GetDialogFrameViewInsets() override; |
| 66 | 67 |
| 67 private: | 68 private: |
| 68 #if defined(OS_WIN) | 69 #if defined(OS_WIN) |
| 69 typedef std::map<HMONITOR, int> AppbarAutohideEdgeMap; | 70 typedef std::map<HMONITOR, int> AppbarAutohideEdgeMap; |
| 70 | 71 |
| 71 // Callback on main thread with the edges. |returned_edges| is the value that | 72 // Callback on main thread with the edges. |returned_edges| is the value that |
| 72 // was returned from the call to GetAutohideEdges() that initiated the lookup. | 73 // was returned from the call to GetAutohideEdges() that initiated the lookup. |
| 73 void OnGotAppbarAutohideEdges(const base::Closure& callback, | 74 void OnGotAppbarAutohideEdges(const base::Closure& callback, |
| 74 HMONITOR monitor, | 75 HMONITOR monitor, |
| 75 int returned_edges, | 76 int returned_edges, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 94 // GetAutohideEdges().start a new query. | 95 // GetAutohideEdges().start a new query. |
| 95 bool in_autohide_edges_callback_; | 96 bool in_autohide_edges_callback_; |
| 96 | 97 |
| 97 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_; | 98 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_; |
| 98 #endif | 99 #endif |
| 99 | 100 |
| 100 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); | 101 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); |
| 101 }; | 102 }; |
| 102 | 103 |
| 103 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ | 104 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ |
| OLD | NEW |