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

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

Issue 1412833008: Draw the same portion of the frame background behind the tabstrip in maximized (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@match_frame_alignment
Patch Set: Add comment Created 5 years, 1 month 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_OPAQUE_BROWSER_FRAME_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/ui/view_ids.h" 9 #include "chrome/browser/ui/view_ids.h"
10 #include "chrome/browser/ui/views/frame/browser_frame.h" 10 #include "chrome/browser/ui/views/frame/browser_frame.h"
(...skipping 21 matching lines...) Expand all
32 public views::MenuButtonListener, 32 public views::MenuButtonListener,
33 public TabIconViewModel, 33 public TabIconViewModel,
34 public OpaqueBrowserFrameViewLayoutDelegate { 34 public OpaqueBrowserFrameViewLayoutDelegate {
35 public: 35 public:
36 // Constructs a non-client view for an BrowserFrame. 36 // Constructs a non-client view for an BrowserFrame.
37 OpaqueBrowserFrameView(BrowserFrame* frame, BrowserView* browser_view); 37 OpaqueBrowserFrameView(BrowserFrame* frame, BrowserView* browser_view);
38 ~OpaqueBrowserFrameView() override; 38 ~OpaqueBrowserFrameView() override;
39 39
40 // BrowserNonClientFrameView: 40 // BrowserNonClientFrameView:
41 gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const override; 41 gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const override;
42 int GetTopInset() const override; 42 int GetTopInset(bool restored) const override;
43 int GetThemeBackgroundXInset() const override; 43 int GetThemeBackgroundXInset() const override;
44 void UpdateThrobber(bool running) override; 44 void UpdateThrobber(bool running) override;
45 gfx::Size GetMinimumSize() const override; 45 gfx::Size GetMinimumSize() const override;
46 46
47 // views::NonClientFrameView: 47 // views::NonClientFrameView:
48 gfx::Rect GetBoundsForClientView() const override; 48 gfx::Rect GetBoundsForClientView() const override;
49 gfx::Rect GetWindowBoundsForClientBounds( 49 gfx::Rect GetWindowBoundsForClientBounds(
50 const gfx::Rect& client_bounds) const override; 50 const gfx::Rect& client_bounds) const override;
51 int NonClientHitTest(const gfx::Point& point) override; 51 int NonClientHitTest(const gfx::Point& point) override;
52 void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) override; 52 void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) override;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // Creates, adds and returns a new image button with |this| as its listener. 107 // Creates, adds and returns a new image button with |this| as its listener.
108 // Memory is owned by the caller. 108 // Memory is owned by the caller.
109 views::ImageButton* InitWindowCaptionButton(int normal_image_id, 109 views::ImageButton* InitWindowCaptionButton(int normal_image_id,
110 int hot_image_id, 110 int hot_image_id,
111 int pushed_image_id, 111 int pushed_image_id,
112 int mask_image_id, 112 int mask_image_id,
113 int accessibility_string_id, 113 int accessibility_string_id,
114 ViewID view_id); 114 ViewID view_id);
115 115
116 // Returns the thickness of the border that makes up the window frame edges. 116 // Returns the thickness of the border that makes up the window frame edges.
117 // This does not include any client edge. If |restored| is true, acts as if 117 // This does not include any client edge. If |restored| is true, this is
118 // the window is restored regardless of the real mode. 118 // calculated as if the window was restored, regardless of its current state.
119 int FrameBorderThickness(bool restored) const; 119 int FrameBorderThickness(bool restored) const;
120 120
121 // Returns the height of the top resize area. This is smaller than the frame 121 // Returns the height of the top resize area. This is smaller than the frame
122 // border height in order to increase the window draggable area. 122 // border height in order to increase the window draggable area.
123 int TopResizeHeight() const; 123 int TopResizeHeight() const;
124 124
125 // Returns true if the specified point is within the avatar menu buttons. 125 // Returns true if the specified point is within the avatar menu buttons.
126 bool IsWithinAvatarMenuButtons(const gfx::Point& point) const; 126 bool IsWithinAvatarMenuButtons(const gfx::Point& point) const;
127 127
128 // Returns the thickness of the entire nonclient left, right, and bottom 128 // Returns the thickness of the entire nonclient left, right, and bottom
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // Background painter for the window frame. 163 // Background painter for the window frame.
164 scoped_ptr<views::FrameBackground> frame_background_; 164 scoped_ptr<views::FrameBackground> frame_background_;
165 165
166 // Observer that handles platform dependent configuration. 166 // Observer that handles platform dependent configuration.
167 scoped_ptr<OpaqueBrowserFrameViewPlatformSpecific> platform_observer_; 167 scoped_ptr<OpaqueBrowserFrameViewPlatformSpecific> platform_observer_;
168 168
169 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); 169 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView);
170 }; 170 };
171 171
172 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ 172 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/glass_browser_frame_view.cc ('k') | chrome/browser/ui/views/frame/opaque_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698