OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_POPUP_NON_CLIENT_FRAME_VIEW_H_ |
| 6 #define CHROME_BROWSER_VIEWS_FRAME_POPUP_NON_CLIENT_FRAME_VIEW_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "chrome/browser/views/frame/browser_non_client_frame_view.h" |
| 10 |
| 11 class BaseTabStrip; |
| 12 |
| 13 // BrowserNonClientFrameView implementation for popups. We let the window |
| 14 // manager implementation render the decorations for popups, so this draws |
| 15 // nothing. |
| 16 class PopupNonClientFrameView : public BrowserNonClientFrameView { |
| 17 public: |
| 18 PopupNonClientFrameView() {} |
| 19 |
| 20 // NonClientFrameView: |
| 21 virtual gfx::Rect GetBoundsForClientView() const; |
| 22 virtual bool AlwaysUseCustomFrame() const; |
| 23 virtual bool AlwaysUseNativeFrame() const; |
| 24 virtual gfx::Rect GetWindowBoundsForClientBounds( |
| 25 const gfx::Rect& client_bounds) const; |
| 26 virtual int NonClientHitTest(const gfx::Point& point); |
| 27 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask); |
| 28 virtual void EnableClose(bool enable); |
| 29 virtual void ResetWindowControls(); |
| 30 |
| 31 // BrowserNonClientFrameView: |
| 32 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const; |
| 33 virtual void UpdateThrobber(bool running); |
| 34 |
| 35 private: |
| 36 DISALLOW_COPY_AND_ASSIGN(PopupNonClientFrameView); |
| 37 }; |
| 38 |
| 39 #endif // CHROME_BROWSER_VIEWS_FRAME_POPUP_NON_CLIENT_FRAME_VIEW_H_ |
OLD | NEW |