OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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_UI_VIEWS_FRAME_BROWSER_FRAME_VIEW_MAC_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_VIEW_MAC_H_ |
| 7 |
| 8 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" |
| 9 |
| 10 class BrowserView; |
| 11 |
| 12 class BrowserFrameViewMac : public BrowserNonClientFrameView { |
| 13 public: |
| 14 // Constructs a non-client view for a BrowserFrame. |
| 15 BrowserFrameViewMac(BrowserFrame* frame, BrowserView* browser_view); |
| 16 ~BrowserFrameViewMac() override; |
| 17 |
| 18 // BrowserNonClientFrameView: |
| 19 gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const override; |
| 20 int GetTopInset() const override; |
| 21 int GetThemeBackgroundXInset() const override; |
| 22 void UpdateThrobber(bool running) override; |
| 23 gfx::Size GetMinimumSize() const override; |
| 24 |
| 25 // views::NonClientFrameView: |
| 26 gfx::Rect GetBoundsForClientView() const override; |
| 27 gfx::Rect GetWindowBoundsForClientBounds( |
| 28 const gfx::Rect& client_bounds) const override; |
| 29 int NonClientHitTest(const gfx::Point& point) override; |
| 30 void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) override; |
| 31 void ResetWindowControls() override; |
| 32 void UpdateWindowIcon() override; |
| 33 void UpdateWindowTitle() override; |
| 34 void SizeConstraintsChanged() override; |
| 35 |
| 36 protected: |
| 37 // views::View: |
| 38 void OnPaint(gfx::Canvas* canvas) override; |
| 39 |
| 40 private: |
| 41 void PaintToolbarBackground(gfx::Canvas* canvas); |
| 42 |
| 43 DISALLOW_COPY_AND_ASSIGN(BrowserFrameViewMac); |
| 44 }; |
| 45 |
| 46 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_VIEW_MAC_H_ |
OLD | NEW |