OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_MAC_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_MAC_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_MAC_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_MAC_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #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" |
9 | 10 |
10 class BrowserNonClientFrameViewMac : public BrowserNonClientFrameView { | 11 class BrowserNonClientFrameViewMac : public BrowserNonClientFrameView { |
11 public: | 12 public: |
12 // Mac implementation of BrowserNonClientFrameView. | 13 // Mac implementation of BrowserNonClientFrameView. |
13 BrowserNonClientFrameViewMac(BrowserFrame* frame, BrowserView* browser_view); | 14 BrowserNonClientFrameViewMac(BrowserFrame* frame, BrowserView* browser_view); |
14 ~BrowserNonClientFrameViewMac() override; | 15 ~BrowserNonClientFrameViewMac() override; |
15 | 16 |
16 // BrowserNonClientFrameView: | 17 // BrowserNonClientFrameView: |
17 gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const override; | 18 gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const override; |
(...skipping 23 matching lines...) Expand all Loading... |
41 void UpdateNewAvatarButtonImpl() override; | 42 void UpdateNewAvatarButtonImpl() override; |
42 | 43 |
43 private: | 44 private: |
44 void PaintThemedFrame(gfx::Canvas* canvas); | 45 void PaintThemedFrame(gfx::Canvas* canvas); |
45 void PaintToolbarBackground(gfx::Canvas* canvas); | 46 void PaintToolbarBackground(gfx::Canvas* canvas); |
46 | 47 |
47 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewMac); | 48 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewMac); |
48 }; | 49 }; |
49 | 50 |
50 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_MAC_H_ | 51 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_MAC_H_ |
OLD | NEW |