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

Side by Side Diff: webkit/glue/plugins/carbon_plugin_window_tracker_mac.cc

Issue 5998002: Revert "Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #include "webkit/plugins/npapi/carbon_plugin_window_tracker_mac.h"
6
7 #include "base/logging.h" 5 #include "base/logging.h"
8 6 #include "webkit/glue/plugins/carbon_plugin_window_tracker_mac.h"
9 namespace webkit {
10 namespace npapi {
11 7
12 CarbonPluginWindowTracker::CarbonPluginWindowTracker() { 8 CarbonPluginWindowTracker::CarbonPluginWindowTracker() {
13 } 9 }
14 10
15 CarbonPluginWindowTracker* CarbonPluginWindowTracker::SharedInstance() { 11 CarbonPluginWindowTracker* CarbonPluginWindowTracker::SharedInstance() {
16 static CarbonPluginWindowTracker* tracker = new CarbonPluginWindowTracker(); 12 static CarbonPluginWindowTracker* tracker = new CarbonPluginWindowTracker();
17 return tracker; 13 return tracker;
18 } 14 }
19 15
20 WindowRef CarbonPluginWindowTracker::CreateDummyWindowForDelegate( 16 WindowRef CarbonPluginWindowTracker::CreateDummyWindowForDelegate(
(...skipping 29 matching lines...) Expand all
50 } 46 }
51 47
52 void CarbonPluginWindowTracker::DestroyDummyWindowForDelegate( 48 void CarbonPluginWindowTracker::DestroyDummyWindowForDelegate(
53 OpaquePluginRef delegate, WindowRef window) { 49 OpaquePluginRef delegate, WindowRef window) {
54 DCHECK(GetDelegateForDummyWindow(window) == delegate); 50 DCHECK(GetDelegateForDummyWindow(window) == delegate);
55 window_to_delegate_map_.erase(window); 51 window_to_delegate_map_.erase(window);
56 delegate_to_window_map_.erase(delegate); 52 delegate_to_window_map_.erase(delegate);
57 if (window) // Check just in case the initial window creation failed. 53 if (window) // Check just in case the initial window creation failed.
58 DisposeWindow(window); 54 DisposeWindow(window);
59 } 55 }
60
61 } // namespace npapi
62 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/glue/plugins/carbon_plugin_window_tracker_mac.h ('k') | webkit/glue/plugins/coregraphics_private_symbols_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698