OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_AURA_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_AURA_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_AURA_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_AURA_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 #include "chrome/browser/ui/views/apps/chrome_native_app_window_views.h" | 13 #include "chrome/browser/ui/views/apps/chrome_native_app_window_views.h" |
14 | 14 |
15 namespace apps { | |
16 class AppWindowFrameView; | |
17 } | |
18 | |
19 // Aura-specific parts of ChromeNativeAppWindowViews. This is used directly on | 15 // Aura-specific parts of ChromeNativeAppWindowViews. This is used directly on |
20 // Linux and Windows, and is the base class for the Ash specific class used on | 16 // Linux and Windows, and is the base class for the Ash specific class used on |
21 // ChromeOS. | 17 // ChromeOS. |
22 class ChromeNativeAppWindowViewsAura : public ChromeNativeAppWindowViews { | 18 class ChromeNativeAppWindowViewsAura : public ChromeNativeAppWindowViews { |
23 public: | 19 public: |
24 ChromeNativeAppWindowViewsAura(); | 20 ChromeNativeAppWindowViewsAura(); |
25 ~ChromeNativeAppWindowViewsAura() override; | 21 ~ChromeNativeAppWindowViewsAura() override; |
26 | 22 |
27 protected: | 23 protected: |
28 ui::WindowShowState GetRestorableState( | 24 ui::WindowShowState GetRestorableState( |
(...skipping 14 matching lines...) Expand all Loading... |
43 void UpdateShape(std::unique_ptr<SkRegion> region) override; | 39 void UpdateShape(std::unique_ptr<SkRegion> region) override; |
44 | 40 |
45 private: | 41 private: |
46 FRIEND_TEST_ALL_PREFIXES(ShapedAppWindowTargeterTest, | 42 FRIEND_TEST_ALL_PREFIXES(ShapedAppWindowTargeterTest, |
47 ResizeInsetsWithinBounds); | 43 ResizeInsetsWithinBounds); |
48 | 44 |
49 DISALLOW_COPY_AND_ASSIGN(ChromeNativeAppWindowViewsAura); | 45 DISALLOW_COPY_AND_ASSIGN(ChromeNativeAppWindowViewsAura); |
50 }; | 46 }; |
51 | 47 |
52 #endif // CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_AURA_H_ | 48 #endif // CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_AURA_H_ |
OLD | NEW |