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

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

Issue 7036014: Consolidate ShouldUseNativeFrame/AlwaysUseNativeFrame/UseNativeFrame spaghetti. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_POPUP_NON_CLIENT_FRAME_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_POPUP_NON_CLIENT_FRAME_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_POPUP_NON_CLIENT_FRAME_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_POPUP_NON_CLIENT_FRAME_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" 9 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h"
10 10
11 // BrowserNonClientFrameView implementation for popups. We let the window 11 // BrowserNonClientFrameView implementation for popups. We let the window
12 // manager implementation render the decorations for popups, so this draws 12 // manager implementation render the decorations for popups, so this draws
13 // nothing. 13 // nothing.
14 class PopupNonClientFrameView : public BrowserNonClientFrameView { 14 class PopupNonClientFrameView : public BrowserNonClientFrameView {
15 public: 15 public:
16 PopupNonClientFrameView() {} 16 explicit PopupNonClientFrameView(BrowserFrame* frame);
17 17
18 // NonClientFrameView: 18 // NonClientFrameView:
19 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; 19 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
20 virtual bool AlwaysUseCustomFrame() const OVERRIDE;
21 virtual bool AlwaysUseNativeFrame() const OVERRIDE;
22 virtual gfx::Rect GetWindowBoundsForClientBounds( 20 virtual gfx::Rect GetWindowBoundsForClientBounds(
23 const gfx::Rect& client_bounds) const OVERRIDE; 21 const gfx::Rect& client_bounds) const OVERRIDE;
24 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; 22 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
25 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) 23 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask)
26 OVERRIDE; 24 OVERRIDE;
27 virtual void EnableClose(bool enable) OVERRIDE; 25 virtual void EnableClose(bool enable) OVERRIDE;
28 virtual void ResetWindowControls() OVERRIDE; 26 virtual void ResetWindowControls() OVERRIDE;
29 virtual void UpdateWindowIcon() OVERRIDE; 27 virtual void UpdateWindowIcon() OVERRIDE;
30 28
31 // BrowserNonClientFrameView: 29 // BrowserNonClientFrameView:
32 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; 30 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE;
33 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const OVERRIDE; 31 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const OVERRIDE;
34 virtual void UpdateThrobber(bool running) OVERRIDE; 32 virtual void UpdateThrobber(bool running) OVERRIDE;
35 33
36 private: 34 private:
37 DISALLOW_COPY_AND_ASSIGN(PopupNonClientFrameView); 35 DISALLOW_COPY_AND_ASSIGN(PopupNonClientFrameView);
38 }; 36 };
39 37
40 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_POPUP_NON_CLIENT_FRAME_VIEW_H_ 38 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_POPUP_NON_CLIENT_FRAME_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698