add a use_alsa gyp setting
[chromium-blink-merge.git] / ui / gfx / scoped_ns_graphics_context_save_gstate_mac.h
blobf4b11ad228eb2639a593a8d7cfef94369b01aafb
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
3 // found in the LICENSE file.
5 #ifndef UI_GFX_SCOPED_NS_GRAPHICS_CONTEXT_SAVE_GSTATE_MAC_H_
6 #define UI_GFX_SCOPED_NS_GRAPHICS_CONTEXT_SAVE_GSTATE_MAC_H_
8 #include "base/basictypes.h"
9 #include "ui/base/ui_export.h"
11 #if defined(__OBJC__)
12 @class NSGraphicsContext;
13 #else
14 class NSGraphicsContext;
15 #endif
17 namespace gfx {
19 // A class to save/restore the state of the current context.
20 class UI_EXPORT ScopedNSGraphicsContextSaveGState {
21 public:
22 ScopedNSGraphicsContextSaveGState();
23 ~ScopedNSGraphicsContextSaveGState();
25 private:
26 NSGraphicsContext* context_; // weak
28 DISALLOW_COPY_AND_ASSIGN(ScopedNSGraphicsContextSaveGState);
31 } // namespace gfx
33 #endif // UI_GFX_SCOPED_NS_GRAPHICS_CONTEXT_SAVE_GSTATE_MAC_H_