Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Side by Side Diff: athena/extensions/athena_native_app_window_views.h

Issue 668513003: Selecting an app window from the overview mode maximizes the window only if it's maximizable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 ATHENA_EXTENSIONS_ATHENA_NATIVE_APP_WINDOW_VIEWS_H_ 5 #ifndef ATHENA_EXTENSIONS_ATHENA_NATIVE_APP_WINDOW_VIEWS_H_
6 #define ATHENA_EXTENSIONS_ATHENA_NATIVE_APP_WINDOW_VIEWS_H_ 6 #define ATHENA_EXTENSIONS_ATHENA_NATIVE_APP_WINDOW_VIEWS_H_
7 7
8 #include "extensions/components/native_app_window/native_app_window_views.h" 8 #include "extensions/components/native_app_window/native_app_window_views.h"
9 9
10 namespace athena { 10 namespace athena {
11 11
12 class AthenaNativeAppWindowViews 12 class AthenaNativeAppWindowViews
13 : public native_app_window::NativeAppWindowViews { 13 : public native_app_window::NativeAppWindowViews {
14 public: 14 public:
15 AthenaNativeAppWindowViews() {} 15 AthenaNativeAppWindowViews() {}
16 virtual ~AthenaNativeAppWindowViews() {} 16 virtual ~AthenaNativeAppWindowViews() {}
17 17
18 views::WebView* GetWebView(); 18 views::WebView* GetWebView();
19 19
20 protected:
21
22 // Specialized initialization of the AppWindowViews specific to Athena. Starts
23 // the window maximized by default unless the create_params specifies a
24 // maximum size, in which case the window will be centered.
25 void virtual InitializeWindow(
26 extensions::AppWindow* app_window,
27 const extensions::AppWindow::CreateParams& create_params) override;
28
20 private: 29 private:
21 DISALLOW_COPY_AND_ASSIGN(AthenaNativeAppWindowViews); 30 DISALLOW_COPY_AND_ASSIGN(AthenaNativeAppWindowViews);
22 }; 31 };
23 32
24 } // namespace athena 33 } // namespace athena
25 34
26 #endif // ATHENA_EXTENSIONS_ATHENA_NATIVE_APP_WINDOW_VIEWS_H_ 35 #endif // ATHENA_EXTENSIONS_ATHENA_NATIVE_APP_WINDOW_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698