blob: c9a90fa24f9d9a373f25e0daa3b6c4d2cbe59e81 [file] [log] [blame]
// Copyright 2014 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.
#include "ui/views/window/non_client_view.h"
namespace views {
class Widget;
namespace athena {
// A NonClientFrameView used for non activity window.
// TODO(oshima): Move this to athena/util and share the code.
class AthenaFrameView : public views::NonClientFrameView {
// The frame class name.
static const char kViewClassName[];
explicit AthenaFrameView(views::Widget* frame);
virtual ~AthenaFrameView();
// views::NonClientFrameView overrides:
virtual gfx::Rect GetBoundsForClientView() const override;
virtual gfx::Rect GetWindowBoundsForClientBounds(
const gfx::Rect& client_bounds) const override;
virtual int NonClientHitTest(const gfx::Point& point) override;
virtual void GetWindowMask(const gfx::Size& size,
gfx::Path* window_mask) override {}
virtual void ResetWindowControls() override {}
virtual void UpdateWindowIcon() override {}
virtual void UpdateWindowTitle() override {}
virtual void SizeConstraintsChanged() override {}
// views::View overrides:
virtual gfx::Size GetPreferredSize() const override;
virtual const char* GetClassName() const override;
virtual void Layout() override {}
gfx::Insets NonClientBorderInsets() const;
virtual int NonClientTopBorderHeight() const;
virtual int NonClientBorderThickness() const;
// Not owned.
views::Widget* frame_;
} // namespace athena