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

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

Issue 1019023002: MacViews: Implement non-client frame view (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wrench-menu
Patch Set: Use Yosemite colors Created 5 years, 9 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
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_
7
8 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h"
9
10 class BrowserNonClientFrameViewMac : public BrowserNonClientFrameView {
11 public:
12 // Mac implementation of BrowserNonClientFrameView.
13 BrowserNonClientFrameViewMac(BrowserFrame* frame, BrowserView* browser_view);
14 ~BrowserNonClientFrameViewMac() override;
15
16 // BrowserNonClientFrameView:
17 gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const override;
18 int GetTopInset() const override;
19 int GetThemeBackgroundXInset() const override;
20 void UpdateThrobber(bool running) override;
21
22 // views::NonClientFrameView:
23 gfx::Rect GetBoundsForClientView() const override;
24 gfx::Rect GetWindowBoundsForClientBounds(
25 const gfx::Rect& client_bounds) const override;
26 int NonClientHitTest(const gfx::Point& point) override;
27 void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) override;
28 void ResetWindowControls() override;
29 void UpdateWindowIcon() override;
30 void UpdateWindowTitle() override;
31 void SizeConstraintsChanged() override;
32
33 // views::View:
34 gfx::Size GetMinimumSize() const override;
35
36 protected:
37 // views::View:
38 void OnPaint(gfx::Canvas* canvas) override;
39
40 // BrowserNonClientFrameView:
41 void UpdateNewStyleAvatar() override;
42
43 private:
44 void PaintThemedFrame(gfx::Canvas* canvas);
45 void PaintToolbarBackground(gfx::Canvas* canvas);
46
47 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewMac);
48 };
49
50 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698