diff options
author | Kristian Monsen <kristianm@google.com> | 2010-10-27 13:27:14 +0100 |
---|---|---|
committer | Kristian Monsen <kristianm@google.com> | 2010-10-27 13:27:14 +0100 |
commit | bda42a81ee5f9b20d2bebedcf0bbef1e30e5b293 (patch) | |
tree | e6c803134a90c4535df4b3d8d1c1d8f03405e462 /chrome/browser/views/frame/popup_non_client_frame_view.h | |
parent | 026dcf071380a81f0213473bab11c7db9f367bce (diff) | |
download | external_chromium-bda42a81ee5f9b20d2bebedcf0bbef1e30e5b293.zip external_chromium-bda42a81ee5f9b20d2bebedcf0bbef1e30e5b293.tar.gz external_chromium-bda42a81ee5f9b20d2bebedcf0bbef1e30e5b293.tar.bz2 |
Adding missing files to chrome/browser
These are not used, but added to easier sync with chromium
Change-Id: I54e6f2f49677e29736fd502758a438b2e3d685d8
Diffstat (limited to 'chrome/browser/views/frame/popup_non_client_frame_view.h')
-rw-r--r-- | chrome/browser/views/frame/popup_non_client_frame_view.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/chrome/browser/views/frame/popup_non_client_frame_view.h b/chrome/browser/views/frame/popup_non_client_frame_view.h new file mode 100644 index 0000000..12982c9 --- /dev/null +++ b/chrome/browser/views/frame/popup_non_client_frame_view.h @@ -0,0 +1,40 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_BROWSER_VIEWS_FRAME_POPUP_NON_CLIENT_FRAME_VIEW_H_ +#define CHROME_BROWSER_VIEWS_FRAME_POPUP_NON_CLIENT_FRAME_VIEW_H_ +#pragma once + +#include "chrome/browser/views/frame/browser_non_client_frame_view.h" + +class BaseTabStrip; + +// BrowserNonClientFrameView implementation for popups. We let the window +// manager implementation render the decorations for popups, so this draws +// nothing. +class PopupNonClientFrameView : public BrowserNonClientFrameView { + public: + PopupNonClientFrameView() {} + + // NonClientFrameView: + virtual gfx::Rect GetBoundsForClientView() const; + virtual bool AlwaysUseCustomFrame() const; + virtual bool AlwaysUseNativeFrame() const; + virtual gfx::Rect GetWindowBoundsForClientBounds( + const gfx::Rect& client_bounds) const; + virtual int NonClientHitTest(const gfx::Point& point); + virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask); + virtual void EnableClose(bool enable); + virtual void ResetWindowControls(); + + // BrowserNonClientFrameView: + virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const; + virtual int GetHorizontalTabStripVerticalOffset(bool restored) const; + virtual void UpdateThrobber(bool running); + + private: + DISALLOW_COPY_AND_ASSIGN(PopupNonClientFrameView); +}; + +#endif // CHROME_BROWSER_VIEWS_FRAME_POPUP_NON_CLIENT_FRAME_VIEW_H_ |