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

Side by Side Diff: chrome/browser/ui/webui/print_preview/sticky_settings.h

Issue 9350051: Removing unneeded macro (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 8 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « base/gtest_prod_util.h ('k') | no next file » | 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_WEBUI_PRINT_PREVIEW_STICKY_SETTINGS_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_STICKY_SETTINGS_H_
6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_STICKY_SETTINGS_H_ 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_STICKY_SETTINGS_H_
7 7
8 #include "printing/print_job_constants.h" 8 #include "printing/print_job_constants.h"
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 14
15 class FilePath; 15 class FilePath;
16 class PrintPreviewHandlerTest; 16 class PrintPreviewHandlerTest;
17 17
18 namespace base { 18 namespace base {
19 class DictionaryValue; 19 class DictionaryValue;
20 } 20 }
21 21
22 namespace printing { 22 namespace printing {
23 struct PageSizeMargins; 23 struct PageSizeMargins;
24 } 24 }
25 25
26 FORWARD_DECLARE_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, StickyMarginsCustom); 26 FORWARD_DECLARE_TEST(PrintPreviewHandlerTest, StickyMarginsCustom);
27 FORWARD_DECLARE_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, 27 FORWARD_DECLARE_TEST(PrintPreviewHandlerTest, StickyMarginsDefault);
28 StickyMarginsDefault); 28 FORWARD_DECLARE_TEST(PrintPreviewHandlerTest, StickyMarginsCustomThenDefault);
29 FORWARD_DECLARE_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, 29 FORWARD_DECLARE_TEST(PrintPreviewHandlerTest, GetLastUsedMarginSettingsCustom);
30 StickyMarginsCustomThenDefault); 30 FORWARD_DECLARE_TEST(PrintPreviewHandlerTest, GetLastUsedMarginSettingsDefault);
31 FORWARD_DECLARE_TEST_ALL_PREFIXES(PrintPreviewHandlerTest,
32 GetLastUsedMarginSettingsCustom);
33 FORWARD_DECLARE_TEST_ALL_PREFIXES(PrintPreviewHandlerTest,
34 GetLastUsedMarginSettingsDefault);
35 31
36 namespace printing { 32 namespace printing {
37 33
38 // Holds all the settings that should be remembered (sticky) in print preview. 34 // Holds all the settings that should be remembered (sticky) in print preview.
39 // A sticky setting will be restored next time the user launches print preview. 35 // A sticky setting will be restored next time the user launches print preview.
40 // Only one instance of this class is instantiated. 36 // Only one instance of this class is instantiated.
41 class StickySettings { 37 class StickySettings {
42 public: 38 public:
43 StickySettings(); 39 StickySettings();
44 ~StickySettings(); 40 ~StickySettings();
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 StickyMarginsCustomThenDefault); 74 StickyMarginsCustomThenDefault);
79 FRIEND_TEST_ALL_PREFIXES(::PrintPreviewHandlerTest, 75 FRIEND_TEST_ALL_PREFIXES(::PrintPreviewHandlerTest,
80 GetLastUsedMarginSettingsCustom); 76 GetLastUsedMarginSettingsCustom);
81 FRIEND_TEST_ALL_PREFIXES(::PrintPreviewHandlerTest, 77 FRIEND_TEST_ALL_PREFIXES(::PrintPreviewHandlerTest,
82 GetLastUsedMarginSettingsDefault); 78 GetLastUsedMarginSettingsDefault);
83 }; 79 };
84 80
85 } // namespace printing 81 } // namespace printing
86 82
87 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_STICKY_SETTINGS_H_ 83 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_STICKY_SETTINGS_H_
OLDNEW
« no previous file with comments | « base/gtest_prod_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698