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

Side by Side Diff: content/browser/renderer_host/accelerated_plugin_view_mac_unittest.mm

Issue 9838071: Implement pepper flash fullscreen on Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 #include "content/browser/renderer_host/accelerated_plugin_view_mac.h" 5 #include "content/browser/renderer_host/accelerated_plugin_view_mac.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #import "content/public/browser/accelerated_window_interface.h"
9 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
10 #include "testing/platform_test.h" 9 #include "testing/platform_test.h"
10 #import "ui/base/cocoa/underlay_opengl_hosting_window.h"
11 11
12 @interface UnderlayCountingWindow : NSWindow<UnderlayableSurface> { 12 @interface UnderlayCountingWindow : NSWindow<UnderlayableSurface> {
13 @private 13 @private
14 int underlayCount_; 14 int underlayCount_;
15 } 15 }
16 @property (readonly, nonatomic) int underlayCount; 16 @property (readonly, nonatomic) int underlayCount;
17 - (void)underlaySurfaceAdded; 17 - (void)underlaySurfaceAdded;
18 - (void)underlaySurfaceRemoved; 18 - (void)underlaySurfaceRemoved;
19 @end 19 @end
20 20
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 180
181 [[window contentView] addSubview:parent]; 181 [[window contentView] addSubview:parent];
182 EXPECT_EQ(1, [window underlayCount]); 182 EXPECT_EQ(1, [window underlayCount]);
183 183
184 [parent setHidden:YES]; 184 [parent setHidden:YES];
185 EXPECT_EQ(0, [window underlayCount]); 185 EXPECT_EQ(0, [window underlayCount]);
186 186
187 [parent removeFromSuperview]; 187 [parent removeFromSuperview];
188 EXPECT_EQ(0, [window underlayCount]); 188 EXPECT_EQ(0, [window underlayCount]);
189 } 189 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698