blob: b8aa632c93e73fb3b6f905d7c7c4e99c18233722 [file] [log] [blame]
// Copyright (c) 2011 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 UI_VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_
#define UI_VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_
#include "base/macros.h"
#include "ui/views/window/non_client_view.h"
namespace views {
class Widget;
class VIEWS_EXPORT NativeFrameView : public NonClientFrameView {
public:
static const char kViewClassName[];
explicit NativeFrameView(Widget* frame);
~NativeFrameView() override;
// NonClientFrameView overrides:
gfx::Rect GetBoundsForClientView() const override;
gfx::Rect GetWindowBoundsForClientBounds(
const gfx::Rect& client_bounds) const override;
int NonClientHitTest(const gfx::Point& point) override;
void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) override;
void ResetWindowControls() override;
void UpdateWindowIcon() override;
void UpdateWindowTitle() override;
void SizeConstraintsChanged() override;
// View overrides:
gfx::Size GetPreferredSize() const override;
gfx::Size GetMinimumSize() const override;
gfx::Size GetMaximumSize() const override;
const char* GetClassName() const override;
private:
// Our containing frame.
Widget* frame_;
DISALLOW_COPY_AND_ASSIGN(NativeFrameView);
};
} // namespace views
#endif // UI_VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_