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

Side by Side Diff: chrome/browser/fullscreen_chromeos_unittest.cc

Issue 14156005: Hide the tab indicators and the shelf when in immersive + tab fullscreen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
(Empty)
1 #include "ash/test/ash_test_base.h"
sky 2013/04/23 22:34:08 You're missing the copright header here.
2
3 #include "chrome/browser/fullscreen.h"
4 #include "ui/aura/root_window.h"
5 #include "ui/views/widget/widget.h"
6
7 namespace ash {
8 namespace {
9
10 typedef ash::test::AshTestBase FullscreenChromeOSTest;
11
12 // Test that IsFullScreenMode() still returns true if the active window's
13 // transient parent is fullscreen. A transient window can be visible while in
14 // fullscreen if a user opens a dialog (eg the bookmkark bubble) while the
15 // top-of-window views are revealed in immersive fullscreen.
16 TEST_F(FullscreenChromeOSTest, TransientParentIsFullscreen) {
17 views::Widget::InitParams parent_params;
18 parent_params.context = CurrentContext();
19 parent_params.bounds = gfx::Rect(0, 0, 100, 100);
20
21 views::Widget* parent = new views::Widget();
22 parent->Init(parent_params);
23 parent->SetFullscreen(true);
24 parent->Show();
25
26 // |child| is a transient child of |parent|.
27 views::Widget::InitParams child_params;
28 child_params.parent = parent->GetNativeView();
29 child_params.bounds = gfx::Rect(0, 0, 100, 100);
30
31 views::Widget* child = new views::Widget();
32 child->Init(child_params);
33 child->Show();
34 child->Activate();
35 ASSERT_TRUE(child->IsActive());
36
37 EXPECT_TRUE(IsFullScreenMode());
sky 2013/04/23 22:34:08 How about an expect for !InFullScreenMode above?
38 }
39
40 } // namespace
41 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698