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

Side by Side Diff: chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.h

Issue 83343006: Enable immersive fullscreen for hosted apps part 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_
7 7
8 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" 10 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 virtual bool ShouldTabIconViewAnimate() const OVERRIDE; 64 virtual bool ShouldTabIconViewAnimate() const OVERRIDE;
65 virtual gfx::ImageSkia GetFaviconForTabIconView() OVERRIDE; 65 virtual gfx::ImageSkia GetFaviconForTabIconView() OVERRIDE;
66 66
67 private: 67 private:
68 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, WindowHeader); 68 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, WindowHeader);
69 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, 69 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest,
70 NonImmersiveFullscreen); 70 NonImmersiveFullscreen);
71 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, 71 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest,
72 ImmersiveFullscreen); 72 ImmersiveFullscreen);
73 73
74 // Distance between top of window and client area.
75 int NonClientTopBorderHeight() const;
76
77 // Returns true if we should use a short header, such as for popup windows. 74 // Returns true if we should use a short header, such as for popup windows.
78 bool UseShortHeader() const; 75 bool UseShortHeader() const;
79 76
80 // Returns true if we should use a super short header with light bars instead 77 // Returns true if we should use a super short header with light bars instead
81 // of regular tabs. This header is used in immersive fullscreen when the 78 // of regular tabs. This header is used in immersive fullscreen when the
82 // top-of-window views are not revealed. 79 // top-of-window views are not revealed.
83 bool UseImmersiveLightbarHeaderStyle() const; 80 bool UseImmersiveLightbarHeaderStyle() const;
84 81
85 // Layout the incognito icon. 82 // Layout the incognito icon.
86 void LayoutAvatar(); 83 void LayoutAvatar();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 scoped_ptr<ash::HeaderPainter> header_painter_; 115 scoped_ptr<ash::HeaderPainter> header_painter_;
119 116
120 // Updates the hittest bounds overrides based on the window show type. 117 // Updates the hittest bounds overrides based on the window show type.
121 scoped_ptr<ash::FrameBorderHitTestController> 118 scoped_ptr<ash::FrameBorderHitTestController>
122 frame_border_hit_test_controller_; 119 frame_border_hit_test_controller_;
123 120
124 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh); 121 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh);
125 }; 122 };
126 123
127 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ 124 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698