| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_EXTENSIONS_BROWSER_ACTION_TEST_UTIL_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_BROWSER_ACTION_TEST_UTIL_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_BROWSER_ACTION_TEST_UTIL_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_BROWSER_ACTION_TEST_UTIL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "ui/gfx/native_widget_types.h" | 14 #include "ui/gfx/native_widget_types.h" |
| 15 | 15 |
| 16 class Browser; | 16 class Browser; |
| 17 class ToolbarActionsBar; | 17 class ToolbarActionsBar; |
| 18 class ToolbarActionsBarDelegate; | |
| 19 | 18 |
| 20 namespace gfx { | 19 namespace gfx { |
| 21 class Image; | 20 class Image; |
| 22 class Rect; | |
| 23 class Size; | 21 class Size; |
| 24 } // namespace gfx | 22 } // namespace gfx |
| 25 | 23 |
| 26 // A class that creates and owns the platform-specific views for the browser | 24 // A class that creates and owns the platform-specific views for the browser |
| 27 // actions container. Specific implementations are in the .cc/.mm files. | 25 // actions container. Specific implementations are in the .cc/.mm files. |
| 28 class TestToolbarActionsBarHelper { | 26 class TestToolbarActionsBarHelper { |
| 29 public: | 27 public: |
| 30 virtual ~TestToolbarActionsBarHelper() {} | 28 virtual ~TestToolbarActionsBarHelper() {} |
| 31 }; | 29 }; |
| 32 | 30 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 Browser* browser_; // weak | 107 Browser* browser_; // weak |
| 110 | 108 |
| 111 // Our test helper, which constructs and owns the views if we don't have a | 109 // Our test helper, which constructs and owns the views if we don't have a |
| 112 // real browser window, or if this is an overflow version. | 110 // real browser window, or if this is an overflow version. |
| 113 std::unique_ptr<TestToolbarActionsBarHelper> test_helper_; | 111 std::unique_ptr<TestToolbarActionsBarHelper> test_helper_; |
| 114 | 112 |
| 115 DISALLOW_COPY_AND_ASSIGN(BrowserActionTestUtil); | 113 DISALLOW_COPY_AND_ASSIGN(BrowserActionTestUtil); |
| 116 }; | 114 }; |
| 117 | 115 |
| 118 #endif // CHROME_BROWSER_EXTENSIONS_BROWSER_ACTION_TEST_UTIL_H_ | 116 #endif // CHROME_BROWSER_EXTENSIONS_BROWSER_ACTION_TEST_UTIL_H_ |
| OLD | NEW |