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

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

Issue 11826068: ash: Disable window caption buttons in immersive mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trivial rebase Created 7 years, 11 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 #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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // views::ButtonListener overrides: 61 // views::ButtonListener overrides:
62 virtual void ButtonPressed(views::Button* sender, 62 virtual void ButtonPressed(views::Button* sender,
63 const ui::Event& event) OVERRIDE; 63 const ui::Event& event) OVERRIDE;
64 64
65 // Overridden from chrome::TabIconViewModel: 65 // Overridden from chrome::TabIconViewModel:
66 virtual bool ShouldTabIconViewAnimate() const OVERRIDE; 66 virtual bool ShouldTabIconViewAnimate() const OVERRIDE;
67 virtual gfx::ImageSkia GetFaviconForTabIconView() OVERRIDE; 67 virtual gfx::ImageSkia GetFaviconForTabIconView() OVERRIDE;
68 68
69 private: 69 private:
70 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, WindowHeader); 70 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, WindowHeader);
71 FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, ImmersiveMode);
71 72
72 // Distance between top of window and client area. 73 // Distance between top of window and client area.
73 int NonClientTopBorderHeight(bool force_restored) const; 74 int NonClientTopBorderHeight(bool force_restored) const;
74 75
75 // Returns true if we should use a short header, such as for popup windows. 76 // Returns true if we should use a short header, such as for popup windows.
76 bool UseShortHeader() const; 77 bool UseShortHeader() const;
77 78
78 // Layout the incognito icon. 79 // Layout the incognito icon.
79 void LayoutAvatar(); 80 void LayoutAvatar();
80 81
(...skipping 24 matching lines...) Expand all
105 scoped_ptr<ash::FramePainter> frame_painter_; 106 scoped_ptr<ash::FramePainter> frame_painter_;
106 107
107 // If true the |size_button_| minimizes, otherwise it toggles between 108 // If true the |size_button_| minimizes, otherwise it toggles between
108 // maximized and restored. 109 // maximized and restored.
109 bool size_button_minimizes_; 110 bool size_button_minimizes_;
110 111
111 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh); 112 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh);
112 }; 113 };
113 114
114 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ 115 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_
OLDNEW
« no previous file with comments | « ash/wm/frame_painter.cc ('k') | chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698