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

Side by Side Diff: ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h

Issue 23498059: Remove last dependencies on ui/base from ui/gfx (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: last rebase Created 7 years, 2 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 | « ui/gfx/render_text.h ('k') | ui/gfx/screen.h » ('j') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 UI_GFX_SCOPED_NS_GRAPHICS_CONTEXT_SAVE_GSTATE_MAC_H_ 5 #ifndef UI_GFX_SCOPED_NS_GRAPHICS_CONTEXT_SAVE_GSTATE_MAC_H_
6 #define UI_GFX_SCOPED_NS_GRAPHICS_CONTEXT_SAVE_GSTATE_MAC_H_ 6 #define UI_GFX_SCOPED_NS_GRAPHICS_CONTEXT_SAVE_GSTATE_MAC_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "ui/gfx/gfx_export.h" 9 #include "ui/gfx/gfx_export.h"
10 10
11 #if defined(__OBJC__) 11 #if defined(__OBJC__)
12 @class NSGraphicsContext; 12 @class NSGraphicsContext;
13 #else 13 #else
14 class NSGraphicsContext; 14 class NSGraphicsContext;
15 #endif 15 #endif
16 16
17 namespace gfx { 17 namespace gfx {
18 18
19 // A class to save/restore the state of the current context. 19 // A class to save/restore the state of the current context.
20 class UI_EXPORT ScopedNSGraphicsContextSaveGState { 20 class GFX_EXPORT ScopedNSGraphicsContextSaveGState {
21 public: 21 public:
22 ScopedNSGraphicsContextSaveGState(); 22 ScopedNSGraphicsContextSaveGState();
23 ~ScopedNSGraphicsContextSaveGState(); 23 ~ScopedNSGraphicsContextSaveGState();
24 24
25 private: 25 private:
26 NSGraphicsContext* context_; // weak 26 NSGraphicsContext* context_; // weak
27 27
28 DISALLOW_COPY_AND_ASSIGN(ScopedNSGraphicsContextSaveGState); 28 DISALLOW_COPY_AND_ASSIGN(ScopedNSGraphicsContextSaveGState);
29 }; 29 };
30 30
31 } // namespace gfx 31 } // namespace gfx
32 32
33 #endif // UI_GFX_SCOPED_NS_GRAPHICS_CONTEXT_SAVE_GSTATE_MAC_H_ 33 #endif // UI_GFX_SCOPED_NS_GRAPHICS_CONTEXT_SAVE_GSTATE_MAC_H_
OLDNEW
« no previous file with comments | « ui/gfx/render_text.h ('k') | ui/gfx/screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698