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

Side by Side Diff: apps/BUILD.gn

Issue 503233003: Add AppDelegate::ResizeWebContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Call the right function 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
« no previous file with comments | « no previous file | apps/app_window.cc » ('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 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 7
8 static_library("apps") { 8 static_library("apps") {
9 sources = [ 9 sources = [
10 "app_lifetime_monitor.cc", 10 "app_lifetime_monitor.cc",
(...skipping 22 matching lines...) Expand all
33 "launcher.h", 33 "launcher.h",
34 "metrics_names.h", 34 "metrics_names.h",
35 "saved_files_service.cc", 35 "saved_files_service.cc",
36 "saved_files_service.h", 36 "saved_files_service.h",
37 "saved_files_service_factory.cc", 37 "saved_files_service_factory.cc",
38 "saved_files_service_factory.h", 38 "saved_files_service_factory.h",
39 "switches.cc", 39 "switches.cc",
40 "switches.h", 40 "switches.h",
41 "ui/apps_client.cc", 41 "ui/apps_client.cc",
42 "ui/apps_client.h", 42 "ui/apps_client.h",
43 "ui/web_contents_sizer.h",
44 ] 43 ]
45 44
46 configs += [ "//build/config/compiler:wexit_time_destructors" ] 45 configs += [ "//build/config/compiler:wexit_time_destructors" ]
47 46
48 deps = [ 47 deps = [
49 "//chrome/app/theme:theme_resources", 48 "//chrome/app/theme:theme_resources",
50 "//chrome/browser/extensions", 49 "//chrome/browser/extensions",
51 "//chrome/common/extensions/api:api", 50 "//chrome/common/extensions/api:api",
52 "//skia", 51 "//skia",
53 ] 52 ]
54 53
55 if (is_chromeos) { 54 if (is_chromeos) {
56 #deps += [ "browser_chromeos" ] TODO(GYP) 55 #deps += [ "browser_chromeos" ] TODO(GYP)
57 } 56 }
58 57
59 if (!enable_extensions) { 58 if (!enable_extensions) {
60 # When extensions are disabled, only the sizer file below is included. 59 # When extensions are disabled, only the sizer file below is included.
61 deps -= [ "//chrome/browser/extensions" ] 60 deps -= [ "//chrome/browser/extensions" ]
62 sources = [] 61 sources = []
63 } 62 }
64 63
65 # This needs to run after the extensions check above since we always want
66 # this file in the project.
67 if (is_mac) {
68 sources += [ "ui/web_contents_sizer.mm" ]
69 } else {
70 sources += [ "ui/web_contents_sizer.cc" ]
71 }
72
73 if (toolkit_views) { 64 if (toolkit_views) {
74 sources += [ 65 sources += [
75 "ui/views/app_window_frame_view.cc", 66 "ui/views/app_window_frame_view.cc",
76 "ui/views/app_window_frame_view.h", 67 "ui/views/app_window_frame_view.h",
77 "ui/views/native_app_window_views.cc", 68 "ui/views/native_app_window_views.cc",
78 "ui/views/native_app_window_views.h", 69 "ui/views/native_app_window_views.h",
79 ] 70 ]
80 deps += [ 71 deps += [
81 "//ui/strings", 72 "//ui/strings",
82 "//ui/views", 73 "//ui/views",
83 ] 74 ]
84 } 75 }
85 76
86 if (is_win) { 77 if (is_win) {
87 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 78 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
88 cflags = [ "/wd4267" ] 79 cflags = [ "/wd4267" ]
89 } 80 }
90 } 81 }
OLDNEW
« no previous file with comments | « no previous file | apps/app_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698