| OLD | NEW | 
|   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 # This file contains UI-related build flags. It should theoretically be in the |   5 # This file contains UI-related build flags. It should theoretically be in the | 
|   6 # src/ui directory and only things that depend on the ui module should get the |   6 # src/ui directory and only things that depend on the ui module should get the | 
|   7 # definitions. |   7 # definitions. | 
|   8 # |   8 # | 
|   9 # However, today we have many "bad" dependencies on some of these flags from, |   9 # However, today we have many "bad" dependencies on some of these flags from, | 
|  10 # e.g. base, so they need to be global. |  10 # e.g. base, so they need to be global. | 
|  11  |  11  | 
|  12 declare_args() { |  12 declare_args() { | 
|  13   # True means the UI is built useing the "views" framework. |  | 
|  14   toolkit_views = false |  | 
|  15  |  | 
|  16   # Indicates if Ash is enabled. Ash is the Aura SHell which provides a |  13   # Indicates if Ash is enabled. Ash is the Aura SHell which provides a | 
|  17   # desktop-like environment for Aura. Requires use_aura = true |  14   # desktop-like environment for Aura. Requires use_aura = true | 
|  18   use_ash = false |  15   use_ash = is_win || is_chromeos | 
|  19  |  | 
|  20   # Indicates if Aura is enabled. Aura is a low-level windowing library, sort |  | 
|  21   # of a replacement for GDI or GTK. |  | 
|  22   use_aura = false |  | 
|  23  |  16  | 
|  24   # Indicates if Ozone is enabled. Ozone is a low-level library layer for Linux |  17   # Indicates if Ozone is enabled. Ozone is a low-level library layer for Linux | 
|  25   # that does not require X11. |  18   # that does not require X11. | 
|  26   use_ozone = false |  19   use_ozone = false | 
|  27 } |  | 
|  28  |  20  | 
|  29 if (is_win || is_chromeos) { |  21   # Indicates if Aura is enabled. Aura is a low-level windowing library, sort | 
|  30   # Windows currelty implies Aura. |  22   # of a replacement for GDI or GTK. | 
|  31   # TODO(brettw) bug 342937 move to declare_args block. |  23   use_aura = is_linux || use_ozone || is_win || is_chromeos || use_ash | 
|  32   use_ash = true |  | 
|  33   use_aura = true |  | 
|  34 } |  | 
|  35  |  24  | 
|  36 if (is_linux || use_ozone) { |  25   # True means the UI is built useing the "views" framework. | 
|  37   use_aura = true |  26   toolkit_views = is_win || is_chromeos || use_aura | 
|  38 } |  | 
|  39  |  | 
|  40 if (!use_aura) { |  | 
|  41   use_ash = false  # Ash needs Aura. |  | 
|  42 } |  | 
|  43  |  | 
|  44 # TODO(brettw) bug 342937 move this to the declare_args block above when this |  | 
|  45 # is supported. It would look like: |  | 
|  46 #  toolkit_views = is_win || is_chromeos || use_aura |  | 
|  47 if (is_win || is_chromeos || use_aura) { |  | 
|  48   toolkit_views = true |  | 
|  49 } |  27 } | 
|  50  |  28  | 
|  51 # Additional dependent variables ----------------------------------------------- |  29 # Additional dependent variables ----------------------------------------------- | 
|  52 # |  30 # | 
|  53 # These variables depend on other variables and can't be set externally. |  31 # These variables depend on other variables and can't be set externally. | 
|  54  |  32  | 
|  55 # Indicates if the UI toolkit depends on GTK. |  33 # Indicates if the UI toolkit depends on GTK. | 
|  56 toolkit_uses_gtk = is_linux && !is_chromeos && !use_aura && !use_ozone |  34 toolkit_uses_gtk = is_linux && !is_chromeos && !use_aura && !use_ozone | 
|  57  |  35  | 
|  58 # Indicates if the UI toolkit depends on X11. |  36 # Indicates if the UI toolkit depends on X11. | 
|  59 use_x11 = is_linux && !use_ozone |  37 use_x11 = is_linux && !use_ozone | 
|  60  |  38  | 
|  61 use_glib = is_linux |  39 use_glib = is_linux | 
| OLD | NEW |