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

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

Issue 327083003: Always use the native frame for popups and hosted apps on desktop linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_POPUP_NON_CLIENT_FRAME_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_POPUP_NON_CLIENT_FRAME_VIEW_H_
7
8 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h"
9
10 // BrowserNonClientFrameView implementation for popups. We let the window
11 // manager implementation render the decorations for popups, so this draws
12 // nothing.
13 class PopupNonClientFrameView : public BrowserNonClientFrameView {
14 public:
15 explicit PopupNonClientFrameView(BrowserFrame* frame);
16
17 // NonClientFrameView:
18 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
19 virtual gfx::Rect GetWindowBoundsForClientBounds(
20 const gfx::Rect& client_bounds) const OVERRIDE;
21 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
22 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask)
23 OVERRIDE;
24 virtual void ResetWindowControls() OVERRIDE;
25 virtual void UpdateWindowIcon() OVERRIDE;
26 virtual void UpdateWindowTitle() OVERRIDE;
27
28 // BrowserNonClientFrameView:
29 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE;
30 virtual int GetTopInset() const OVERRIDE;
31 virtual int GetThemeBackgroundXInset() const OVERRIDE;
32 virtual void UpdateThrobber(bool running) OVERRIDE;
33
34 private:
35 DISALLOW_COPY_AND_ASSIGN(PopupNonClientFrameView);
36 };
37
38 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_POPUP_NON_CLIENT_FRAME_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698