ServiceWorker: Send state change events via SWProviderHost
[chromium-blink-merge.git] / ui / views / window / native_frame_view.h
blob4e3897988ef88253d24a7f56e1b34f1f5d59887b
1 // Copyright (c) 2011 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.
5 #ifndef UI_VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_
6 #define UI_VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_
8 #include "ui/views/window/non_client_view.h"
10 namespace views {
12 class Widget;
14 class VIEWS_EXPORT NativeFrameView : public NonClientFrameView {
15 public:
16 static const char kViewClassName[];
18 explicit NativeFrameView(Widget* frame);
19 ~NativeFrameView() override;
21 // NonClientFrameView overrides:
22 gfx::Rect GetBoundsForClientView() const override;
23 gfx::Rect GetWindowBoundsForClientBounds(
24 const gfx::Rect& client_bounds) const override;
25 int NonClientHitTest(const gfx::Point& point) override;
26 void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) override;
27 void ResetWindowControls() override;
28 void UpdateWindowIcon() override;
29 void UpdateWindowTitle() override;
30 void SizeConstraintsChanged() override;
32 // View overrides:
33 gfx::Size GetPreferredSize() const override;
34 gfx::Size GetMinimumSize() const override;
35 gfx::Size GetMaximumSize() const override;
36 const char* GetClassName() const override;
38 private:
39 // Our containing frame.
40 Widget* frame_;
42 DISALLOW_COPY_AND_ASSIGN(NativeFrameView);
45 } // namespace views
47 #endif // UI_VIEWS_WINDOW_NATIVE_FRAME_VIEW_H_