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

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

Issue 664703003: Stash: hacks to get MacViews chrome browser window working (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Created 6 years 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 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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/find_bar_host.cc ('k') | chrome/browser/ui/views/frame/browser_frame_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698