diff options
author | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-03 02:11:32 +0000 |
---|---|---|
committer | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-03 02:11:32 +0000 |
commit | e5df6ed1abd14c08539d94affe90cc5ea71758aa (patch) | |
tree | f5129fef1238a9d74ab247ad4e67f1445ab83b24 /chrome/browser/cocoa/floating_bar_backing_view_unittest.mm | |
parent | abe48d303fe241d38e30df64cc6c4ea197be61d9 (diff) | |
download | chromium_src-e5df6ed1abd14c08539d94affe90cc5ea71758aa.zip chromium_src-e5df6ed1abd14c08539d94affe90cc5ea71758aa.tar.gz chromium_src-e5df6ed1abd14c08539d94affe90cc5ea71758aa.tar.bz2 |
[Mac] Adds code for fullscreen mode, including a floating dropdown toolbar and tabstrip. This change does not enable the fullscreen menu item; a future CL will do that.
BUG=31638
TEST=No visible changes. Unittests should pass.
Review URL: http://codereview.chromium.org/542013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37932 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/floating_bar_backing_view_unittest.mm')
-rw-r--r-- | chrome/browser/cocoa/floating_bar_backing_view_unittest.mm | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/floating_bar_backing_view_unittest.mm b/chrome/browser/cocoa/floating_bar_backing_view_unittest.mm new file mode 100644 index 0000000..94d395f --- /dev/null +++ b/chrome/browser/cocoa/floating_bar_backing_view_unittest.mm @@ -0,0 +1,26 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import "chrome/browser/cocoa/cocoa_test_helper.h" +#import "chrome/browser/cocoa/floating_bar_backing_view.h" + +namespace { + +class FloatingBarBackingViewTest : public CocoaTest { + public: + FloatingBarBackingViewTest() { + NSRect content_frame = [[test_window() contentView] frame]; + scoped_nsobject<FloatingBarBackingView> view( + [[FloatingBarBackingView alloc] initWithFrame:content_frame]); + view_ = view.get(); + [[test_window() contentView] addSubview:view_]; + } + + FloatingBarBackingView* view_; // Weak. Owned by the view hierarchy. +}; + +// Tests display, add/remove. +TEST_VIEW(FloatingBarBackingViewTest, view_); + +} // namespace |