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

Side by Side Diff: apps/ui/views/native_app_window_views.cc

Issue 494033002: Move AppWindow to extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unneeded include in chrome_shell_delegate.cc Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « apps/ui/views/native_app_window_views.h ('k') | athena/activity/public/activity_factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "apps/ui/views/native_app_window_views.h" 5 #include "apps/ui/views/native_app_window_views.h"
6 6
7 #include "apps/app_window.h"
8 #include "base/threading/sequenced_worker_pool.h" 7 #include "base/threading/sequenced_worker_pool.h"
9 #include "content/public/browser/render_view_host.h" 8 #include "content/public/browser/render_view_host.h"
10 #include "content/public/browser/render_widget_host_view.h" 9 #include "content/public/browser/render_widget_host_view.h"
11 #include "content/public/browser/web_contents.h" 10 #include "content/public/browser/web_contents.h"
11 #include "extensions/browser/app_window/app_window.h"
12 #include "extensions/common/draggable_region.h" 12 #include "extensions/common/draggable_region.h"
13 #include "third_party/skia/include/core/SkRegion.h" 13 #include "third_party/skia/include/core/SkRegion.h"
14 #include "ui/gfx/path.h" 14 #include "ui/gfx/path.h"
15 #include "ui/views/controls/webview/webview.h" 15 #include "ui/views/controls/webview/webview.h"
16 #include "ui/views/widget/widget.h" 16 #include "ui/views/widget/widget.h"
17 #include "ui/views/window/non_client_view.h" 17 #include "ui/views/window/non_client_view.h"
18 18
19 #if defined(USE_AURA) 19 #if defined(USE_AURA)
20 #include "ui/aura/window.h" 20 #include "ui/aura/window.h"
21 #endif 21 #endif
22 22
23 using extensions::AppWindow;
24
23 namespace apps { 25 namespace apps {
24 26
25 NativeAppWindowViews::NativeAppWindowViews() 27 NativeAppWindowViews::NativeAppWindowViews()
26 : app_window_(NULL), 28 : app_window_(NULL),
27 web_view_(NULL), 29 web_view_(NULL),
28 widget_(NULL), 30 widget_(NULL),
29 frameless_(false), 31 frameless_(false),
30 resizable_(false) {} 32 resizable_(false) {}
31 33
32 void NativeAppWindowViews::Init(AppWindow* app_window, 34 void NativeAppWindowViews::Init(AppWindow* app_window,
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 const gfx::Size& min_size, const gfx::Size& max_size) { 395 const gfx::Size& min_size, const gfx::Size& max_size) {
394 size_constraints_.set_minimum_size(min_size); 396 size_constraints_.set_minimum_size(min_size);
395 size_constraints_.set_maximum_size(max_size); 397 size_constraints_.set_maximum_size(max_size);
396 } 398 }
397 399
398 bool NativeAppWindowViews::CanHaveAlphaEnabled() const { 400 bool NativeAppWindowViews::CanHaveAlphaEnabled() const {
399 return widget_->IsTranslucentWindowOpacitySupported(); 401 return widget_->IsTranslucentWindowOpacitySupported();
400 } 402 }
401 403
402 } // namespace apps 404 } // namespace apps
OLDNEW
« no previous file with comments | « apps/ui/views/native_app_window_views.h ('k') | athena/activity/public/activity_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698