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

Side by Side Diff: webkit/plugins/npapi/webplugin_delegate_impl_mac.mm

Issue 10869031: mac: Use ScopedCGContextSaveGState in a few more places (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
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 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 #import <QuartzCore/QuartzCore.h> 6 #import <QuartzCore/QuartzCore.h>
7 7
8 #include "webkit/plugins/npapi/webplugin_delegate_impl.h" 8 #include "webkit/plugins/npapi/webplugin_delegate_impl.h"
9 9
10 #include <string> 10 #include <string>
11 #include <unistd.h> 11 #include <unistd.h>
12 #include <set> 12 #include <set>
13 13
14 #include "base/file_util.h" 14 #include "base/file_util.h"
15 #include "base/mac/mac_util.h" 15 #include "base/mac/mac_util.h"
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "base/message_loop.h" 17 #include "base/message_loop.h"
18 #include "base/metrics/stats_counters.h" 18 #include "base/metrics/stats_counters.h"
19 #include "base/string_util.h" 19 #include "base/string_util.h"
20 #include "base/utf_string_conversions.h" 20 #include "base/utf_string_conversions.h"
21 #include "base/sys_string_conversions.h" 21 #include "base/sys_string_conversions.h"
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
23 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h"
23 #include "webkit/glue/webkit_glue.h" 24 #include "webkit/glue/webkit_glue.h"
24 #include "webkit/plugins/npapi/plugin_instance.h" 25 #include "webkit/plugins/npapi/plugin_instance.h"
25 #include "webkit/plugins/npapi/plugin_lib.h" 26 #include "webkit/plugins/npapi/plugin_lib.h"
26 #include "webkit/plugins/npapi/plugin_list.h" 27 #include "webkit/plugins/npapi/plugin_list.h"
27 #include "webkit/plugins/npapi/plugin_stream_url.h" 28 #include "webkit/plugins/npapi/plugin_stream_url.h"
28 #include "webkit/plugins/npapi/plugin_web_event_converter_mac.h" 29 #include "webkit/plugins/npapi/plugin_web_event_converter_mac.h"
29 #include "webkit/plugins/npapi/webplugin.h" 30 #include "webkit/plugins/npapi/webplugin.h"
30 #include "webkit/plugins/npapi/webplugin_accelerated_surface_mac.h" 31 #include "webkit/plugins/npapi/webplugin_accelerated_surface_mac.h"
31 32
32 #ifndef NP_NO_CARBON 33 #ifndef NP_NO_CARBON
(...skipping 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after
1087 HIPoint mouse_location; 1088 HIPoint mouse_location;
1088 HIGetMousePosition(kHICoordSpaceScreenPixel, NULL, &mouse_location); 1089 HIGetMousePosition(kHICoordSpaceScreenPixel, NULL, &mouse_location);
1089 np_event.where.h = mouse_location.x; 1090 np_event.where.h = mouse_location.x;
1090 np_event.where.v = mouse_location.y; 1091 np_event.where.v = mouse_location.y;
1091 instance()->NPP_HandleEvent(&np_event); 1092 instance()->NPP_HandleEvent(&np_event);
1092 } 1093 }
1093 #endif // !NP_NO_CARBON 1094 #endif // !NP_NO_CARBON
1094 1095
1095 } // namespace npapi 1096 } // namespace npapi
1096 } // namespace webkit 1097 } // namespace webkit
OLDNEW
« no previous file with comments | « content/browser/renderer_host/backing_store_mac.mm ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698