summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild/mac/edit_xibs.sh17
-rw-r--r--chrome/chrome_browser_ui.gypi50
-rw-r--r--chrome/chrome_dll.gypi55
-rw-r--r--chrome/chrome_nibs.gyp252
-rw-r--r--chrome/chrome_nibs.gypi71
5 files changed, 349 insertions, 96 deletions
diff --git a/build/mac/edit_xibs.sh b/build/mac/edit_xibs.sh
new file mode 100755
index 0000000..a305455
--- /dev/null
+++ b/build/mac/edit_xibs.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# This script is a convenience to run GYP for /src/chrome/chrome_nibs.gyp
+# with the Xcode generator (as you likely use ninja). Documentation:
+# http://dev.chromium.org/developers/design-documents/mac-xib-files
+
+set -e
+
+RELSRC=$(dirname "$0")/../..
+SRC=$(cd "$RELSRC" && pwd)
+GYP_GENERATORS=xcode python "$SRC/tools/gyp/gyp" "$SRC/chrome/chrome_nibs.gyp"
+echo "You can now edit XIB files in Xcode using:"
+echo " $SRC/chrome/chrome_nibs.xcodeproj"
diff --git a/chrome/chrome_browser_ui.gypi b/chrome/chrome_browser_ui.gypi
index e8b3f21..94c74bd 100644
--- a/chrome/chrome_browser_ui.gypi
+++ b/chrome/chrome_browser_ui.gypi
@@ -2455,61 +2455,21 @@
'variables': {
'xib_localizer_tool_path':
'tools/build/mac/generate_localizer',
- 'xib_files_to_scan': [
- # The xibs that need localization
- 'app/nibs/AvatarMenuItem.xib',
- 'app/nibs/BookmarkAllTabs.xib',
- 'app/nibs/BookmarkBar.xib',
- 'app/nibs/BookmarkBubble.xib',
- 'app/nibs/BookmarkEditor.xib',
- 'app/nibs/BookmarkNameFolder.xib',
- 'app/nibs/BrowserWindow.xib',
- 'app/nibs/ChromeToMobileBubble.xib',
- 'app/nibs/CollectedCookies.xib',
- 'app/nibs/ContentBlockedCookies.xib',
- 'app/nibs/ContentBlockedImages.xib',
- 'app/nibs/ContentBlockedJavaScript.xib',
- 'app/nibs/ContentBlockedMixedScript.xib',
- 'app/nibs/ContentBlockedPlugins.xib',
- 'app/nibs/ContentBlockedPopups.xib',
- 'app/nibs/ContentBlockedGeolocation.xib',
- 'app/nibs/ContentProtocolHandlers.xib',
- 'app/nibs/CookieDetailsView.xib',
- 'app/nibs/DownloadItem.xib',
- 'app/nibs/DownloadShelf.xib',
- 'app/nibs/EditSearchEngine.xib',
- 'app/nibs/ExtensionInstallPrompt.xib',
- 'app/nibs/ExtensionInstallPromptBundle.xib',
- 'app/nibs/ExtensionInstallPromptInline.xib',
- 'app/nibs/ExtensionInstallPromptNoWarnings.xib',
- 'app/nibs/ExtensionInstalledBubble.xib',
- 'app/nibs/FirstRunBubble.xib',
- 'app/nibs/FirstRunDialog.xib',
- 'app/nibs/FullscreenExitBubble.xib',
- 'app/nibs/HttpAuthLoginSheet.xib',
- 'app/nibs/HungRendererDialog.xib',
- 'app/nibs/ImportProgressDialog.xib',
- 'app/nibs/MainMenu.xib',
- 'app/nibs/OneClickSigninBubble.xib',
- 'app/nibs/SadTab.xib',
- 'app/nibs/SaveAccessoryView.xib',
- 'app/nibs/SpeechRecognitionBubble.xib',
- 'app/nibs/TaskManager.xib',
- 'app/nibs/Toolbar.xib',
- 'app/nibs/WrenchMenu.xib',
- ],
},
+ 'includes': [
+ 'chrome_nibs.gypi',
+ ],
'action_name': 'Process xibs for localization',
'inputs': [
'<(xib_localizer_tool_path)',
- '<@(xib_files_to_scan)',
+ '<@(mac_translated_xibs)',
],
'outputs': [
'<(INTERMEDIATE_DIR)/ui_localizer_table.h',
],
'action': ['<(xib_localizer_tool_path)',
'<@(_outputs)',
- '<@(xib_files_to_scan)'],
+ '<@(mac_translated_xibs)'],
},
],
}],
diff --git a/chrome/chrome_dll.gypi b/chrome/chrome_dll.gypi
index a97e914..246b01c 100644
--- a/chrome/chrome_dll.gypi
+++ b/chrome/chrome_dll.gypi
@@ -214,6 +214,9 @@
'include_dirs': [
'<(grit_out_dir)',
],
+ 'includes': [
+ 'chrome_nibs.gypi',
+ ],
# TODO(mark): Come up with a fancier way to do this. It should
# only be necessary to list framework-Info.plist once, not the
# three times it is listed here.
@@ -228,57 +231,7 @@
'app/theme/default_100_percent/<(theme_dir_name)/product_logo_32.png',
'app/framework-Info.plist',
- 'app/nibs/AboutIPC.xib',
- 'app/nibs/AvatarMenuItem.xib',
- 'app/nibs/BookmarkAllTabs.xib',
- 'app/nibs/BookmarkBar.xib',
- 'app/nibs/BookmarkBarFolderWindow.xib',
- 'app/nibs/BookmarkBubble.xib',
- 'app/nibs/BookmarkEditor.xib',
- 'app/nibs/BookmarkNameFolder.xib',
- 'app/nibs/BrowserWindow.xib',
- 'app/nibs/ChromeToMobileBubble.xib',
- 'app/nibs/CollectedCookies.xib',
- 'app/nibs/CookieDetailsView.xib',
- 'app/nibs/ContentBlockedCookies.xib',
- 'app/nibs/ContentBlockedImages.xib',
- 'app/nibs/ContentBlockedJavaScript.xib',
- 'app/nibs/ContentBlockedMixedScript.xib',
- 'app/nibs/ContentBlockedPlugins.xib',
- 'app/nibs/ContentBlockedPopups.xib',
- 'app/nibs/ContentBlockedGeolocation.xib',
- 'app/nibs/ContentProtocolHandlers.xib',
- 'app/nibs/DownloadItem.xib',
- 'app/nibs/DownloadShelf.xib',
- 'app/nibs/EditSearchEngine.xib',
- 'app/nibs/ExtensionInstallPrompt.xib',
- 'app/nibs/ExtensionInstallPromptBundle.xib',
- 'app/nibs/ExtensionInstallPromptInline.xib',
- 'app/nibs/ExtensionInstallPromptNoWarnings.xib',
- 'app/nibs/ExtensionInstalledBubble.xib',
- 'app/nibs/ExtensionInstalledBubbleBundle.xib',
- 'app/nibs/FindBar.xib',
- 'app/nibs/FirstRunBubble.xib',
- 'app/nibs/FirstRunDialog.xib',
- 'app/nibs/FullscreenExitBubble.xib',
- 'app/nibs/GlobalErrorBubble.xib',
- 'app/nibs/HungRendererDialog.xib',
- 'app/nibs/HttpAuthLoginSheet.xib',
- 'app/nibs/ImportProgressDialog.xib',
- 'app/nibs/InfoBar.xib',
- 'app/nibs/InfoBarContainer.xib',
- 'app/nibs/MainMenu.xib',
- 'app/nibs/Notification.xib',
- 'app/nibs/OneClickSigninBubble.xib',
- 'app/nibs/Panel.xib',
- 'app/nibs/PreviewableContents.xib',
- 'app/nibs/SaveAccessoryView.xib',
- 'app/nibs/SadTab.xib',
- 'app/nibs/SpeechRecognitionBubble.xib',
- 'app/nibs/TabView.xib',
- 'app/nibs/TaskManager.xib',
- 'app/nibs/Toolbar.xib',
- 'app/nibs/WrenchMenu.xib',
+ '<@(mac_all_xibs)',
'app/theme/balloon_wrench.pdf',
'app/theme/chevron.pdf',
'app/theme/find_next_Template.pdf',
diff --git a/chrome/chrome_nibs.gyp b/chrome/chrome_nibs.gyp
new file mode 100644
index 0000000..b277646
--- /dev/null
+++ b/chrome/chrome_nibs.gyp
@@ -0,0 +1,252 @@
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# This gyp file creates a fake target that is used to generate a minimal Xcode
+# project, useful for editing XIB files.
+#
+# The sole target is called "chrome_nibs" and its sources are the minimum
+# dependency set for all of the classes referred to by XIB files. If you are
+# editing or adding a new XIB file, ensure that any classes to which you refer
+# in the XIB are listed (both header and implementation) here so that Xcode can
+# connect them.
+#
+# This target DOES NOT BUILD. Attempting to do so will generate lots of errors.
+# Only use this target for editing XIBs.
+#
+# For more information, see
+# <http://dev.chromium.org/developers/design-documents/mac-xib-files>.
+{
+ 'variables': {
+ 'chromium_code': 1,
+ },
+ 'includes': [
+ '../build/common.gypi',
+ 'chrome_nibs.gypi',
+ ],
+ 'target_defaults': {
+ 'include_dirs': [
+ '..',
+ ],
+ },
+ 'targets': [
+ {
+ 'target_name': 'chrome_nibs',
+ 'type': 'executable',
+ 'mac_bundle': 1,
+ 'sources': [
+ '../third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h',
+ '../third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.mm',
+ '../ui/base/cocoa/base_view.h',
+ '../ui/base/cocoa/base_view.mm',
+ 'browser/ui/cocoa/about_ipc_controller.h',
+ 'browser/ui/cocoa/about_ipc_controller.mm',
+ 'browser/ui/cocoa/animatable_view.h',
+ 'browser/ui/cocoa/animatable_view.mm',
+ 'browser/ui/cocoa/background_gradient_view.h',
+ 'browser/ui/cocoa/background_gradient_view.mm',
+ 'browser/ui/cocoa/base_bubble_controller.h',
+ 'browser/ui/cocoa/base_bubble_controller.mm',
+ 'browser/ui/cocoa/bookmarks/bookmark_all_tabs_controller.h',
+ 'browser/ui/cocoa/bookmarks/bookmark_all_tabs_controller.mm',
+ 'browser/ui/cocoa/bookmarks/bookmark_bar_controller.h',
+ 'browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm',
+ 'browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.h',
+ 'browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm',
+ 'browser/ui/cocoa/bookmarks/bookmark_bar_folder_view.h',
+ 'browser/ui/cocoa/bookmarks/bookmark_bar_folder_view.mm',
+ 'browser/ui/cocoa/bookmarks/bookmark_bar_folder_window.h',
+ 'browser/ui/cocoa/bookmarks/bookmark_bar_folder_window.mm',
+ 'browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.h',
+ 'browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.mm',
+ 'browser/ui/cocoa/bookmarks/bookmark_bar_unittest_helper.h',
+ 'browser/ui/cocoa/bookmarks/bookmark_bar_unittest_helper.mm',
+ 'browser/ui/cocoa/bookmarks/bookmark_bar_view.h',
+ 'browser/ui/cocoa/bookmarks/bookmark_bar_view.mm',
+ 'browser/ui/cocoa/bookmarks/bookmark_bubble_controller.h',
+ 'browser/ui/cocoa/bookmarks/bookmark_bubble_controller.mm',
+ 'browser/ui/cocoa/bookmarks/bookmark_button.h',
+ 'browser/ui/cocoa/bookmarks/bookmark_button.mm',
+ 'browser/ui/cocoa/bookmarks/bookmark_button_cell.h',
+ 'browser/ui/cocoa/bookmarks/bookmark_button_cell.mm',
+ 'browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.h',
+ 'browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.mm',
+ 'browser/ui/cocoa/bookmarks/bookmark_menu.h',
+ 'browser/ui/cocoa/bookmarks/bookmark_menu.mm',
+ 'browser/ui/cocoa/bookmarks/bookmark_name_folder_controller.h',
+ 'browser/ui/cocoa/bookmarks/bookmark_name_folder_controller.mm',
+ 'browser/ui/cocoa/browser/avatar_menu_bubble_controller.h',
+ 'browser/ui/cocoa/browser/avatar_menu_bubble_controller.mm',
+ 'browser/ui/cocoa/browser_window_controller.h',
+ 'browser/ui/cocoa/browser_window_controller.mm',
+ 'browser/ui/cocoa/browser_window_controller_private.h',
+ 'browser/ui/cocoa/browser_window_controller_private.mm',
+ 'browser/ui/cocoa/chrome_browser_window.h',
+ 'browser/ui/cocoa/chrome_browser_window.mm',
+ 'browser/ui/cocoa/chrome_event_processing_window.h',
+ 'browser/ui/cocoa/chrome_event_processing_window.mm',
+ 'browser/ui/cocoa/chrome_to_mobile_bubble_controller.h',
+ 'browser/ui/cocoa/chrome_to_mobile_bubble_controller.mm',
+ 'browser/ui/cocoa/clickhold_button_cell.h',
+ 'browser/ui/cocoa/clickhold_button_cell.mm',
+ 'browser/ui/cocoa/content_settings/collected_cookies_mac.h',
+ 'browser/ui/cocoa/content_settings/collected_cookies_mac.mm',
+ 'browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.h',
+ 'browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.mm',
+ 'browser/ui/cocoa/content_settings/cookie_details_view_controller.h',
+ 'browser/ui/cocoa/content_settings/cookie_details_view_controller.mm',
+ 'browser/ui/cocoa/custom_frame_view.h',
+ 'browser/ui/cocoa/custom_frame_view.mm',
+ 'browser/ui/cocoa/download/download_item_button.h',
+ 'browser/ui/cocoa/download/download_item_button.mm',
+ 'browser/ui/cocoa/download/download_item_cell.h',
+ 'browser/ui/cocoa/download/download_item_cell.mm',
+ 'browser/ui/cocoa/download/download_item_controller.h',
+ 'browser/ui/cocoa/download/download_item_controller.mm',
+ 'browser/ui/cocoa/download/download_shelf_controller.h',
+ 'browser/ui/cocoa/download/download_shelf_controller.mm',
+ 'browser/ui/cocoa/download/download_shelf_view.h',
+ 'browser/ui/cocoa/download/download_shelf_view.mm',
+ 'browser/ui/cocoa/download/download_show_all_button.h',
+ 'browser/ui/cocoa/download/download_show_all_button.mm',
+ 'browser/ui/cocoa/download/download_show_all_cell.h',
+ 'browser/ui/cocoa/download/download_show_all_cell.mm',
+ 'browser/ui/cocoa/draggable_button.h',
+ 'browser/ui/cocoa/draggable_button.mm',
+ 'browser/ui/cocoa/extensions/browser_actions_container_view.h',
+ 'browser/ui/cocoa/extensions/browser_actions_container_view.mm',
+ 'browser/ui/cocoa/extensions/extension_install_dialog_controller.h',
+ 'browser/ui/cocoa/extensions/extension_install_dialog_controller.mm',
+ 'browser/ui/cocoa/extensions/extension_installed_bubble_controller.h',
+ 'browser/ui/cocoa/extensions/extension_installed_bubble_controller.mm',
+ 'browser/ui/cocoa/fast_resize_view.h',
+ 'browser/ui/cocoa/fast_resize_view.mm',
+ 'browser/ui/cocoa/find_bar/find_bar_cocoa_controller.h',
+ 'browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm',
+ 'browser/ui/cocoa/find_bar/find_bar_text_field.h',
+ 'browser/ui/cocoa/find_bar/find_bar_text_field.mm',
+ 'browser/ui/cocoa/find_bar/find_bar_text_field_cell.h',
+ 'browser/ui/cocoa/find_bar/find_bar_text_field_cell.mm',
+ 'browser/ui/cocoa/find_bar/find_bar_view.h',
+ 'browser/ui/cocoa/find_bar/find_bar_view.mm',
+ 'browser/ui/cocoa/first_run_bubble_controller.h',
+ 'browser/ui/cocoa/first_run_bubble_controller.mm',
+ 'browser/ui/cocoa/first_run_dialog.h',
+ 'browser/ui/cocoa/first_run_dialog.mm',
+ 'browser/ui/cocoa/framed_browser_window.h',
+ 'browser/ui/cocoa/framed_browser_window.mm',
+ 'browser/ui/cocoa/fullscreen_exit_bubble_controller.h',
+ 'browser/ui/cocoa/fullscreen_exit_bubble_controller.mm',
+ 'browser/ui/cocoa/fullscreen_exit_bubble_view.h',
+ 'browser/ui/cocoa/fullscreen_exit_bubble_view.mm',
+ 'browser/ui/cocoa/global_error_bubble_controller.h',
+ 'browser/ui/cocoa/global_error_bubble_controller.mm',
+ 'browser/ui/cocoa/gradient_button_cell.h',
+ 'browser/ui/cocoa/gradient_button_cell.mm',
+ 'browser/ui/cocoa/hover_button.h',
+ 'browser/ui/cocoa/hover_button.mm',
+ 'browser/ui/cocoa/hover_close_button.h',
+ 'browser/ui/cocoa/hover_close_button.mm',
+ 'browser/ui/cocoa/hover_image_button.h',
+ 'browser/ui/cocoa/hover_image_button.mm',
+ 'browser/ui/cocoa/hung_renderer_controller.h',
+ 'browser/ui/cocoa/hung_renderer_controller.mm',
+ 'browser/ui/cocoa/hyperlink_button_cell.h',
+ 'browser/ui/cocoa/hyperlink_button_cell.mm',
+ 'browser/ui/cocoa/image_button_cell.h',
+ 'browser/ui/cocoa/image_button_cell.mm',
+ 'browser/ui/cocoa/importer/import_progress_dialog.h',
+ 'browser/ui/cocoa/importer/import_progress_dialog.mm',
+ 'browser/ui/cocoa/info_bubble_view.h',
+ 'browser/ui/cocoa/info_bubble_view.mm',
+ 'browser/ui/cocoa/info_bubble_window.h',
+ 'browser/ui/cocoa/info_bubble_window.mm',
+ 'browser/ui/cocoa/infobars/infobar_container_controller.h',
+ 'browser/ui/cocoa/infobars/infobar_container_controller.mm',
+ 'browser/ui/cocoa/infobars/infobar_controller.h',
+ 'browser/ui/cocoa/infobars/infobar_controller.mm',
+ 'browser/ui/cocoa/infobars/infobar_gradient_view.h',
+ 'browser/ui/cocoa/infobars/infobar_gradient_view.mm',
+ 'browser/ui/cocoa/location_bar/autocomplete_text_field.h',
+ 'browser/ui/cocoa/location_bar/autocomplete_text_field.mm',
+ 'browser/ui/cocoa/location_bar/autocomplete_text_field_cell.h',
+ 'browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm',
+ 'browser/ui/cocoa/menu_button.h',
+ 'browser/ui/cocoa/menu_button.mm',
+ 'browser/ui/cocoa/menu_controller.h',
+ 'browser/ui/cocoa/menu_controller.mm',
+ 'browser/ui/cocoa/multi_key_equivalent_button.h',
+ 'browser/ui/cocoa/multi_key_equivalent_button.mm',
+ 'browser/ui/cocoa/new_tab_button.h',
+ 'browser/ui/cocoa/new_tab_button.mm',
+ 'browser/ui/cocoa/notifications/balloon_controller.h',
+ 'browser/ui/cocoa/notifications/balloon_controller.mm',
+ 'browser/ui/cocoa/notifications/balloon_view.h',
+ 'browser/ui/cocoa/notifications/balloon_view.mm',
+ 'browser/ui/cocoa/nsmenuitem_additions.h',
+ 'browser/ui/cocoa/nsmenuitem_additions.mm',
+ 'browser/ui/cocoa/nsview_additions.h',
+ 'browser/ui/cocoa/nsview_additions.mm',
+ 'browser/ui/cocoa/one_click_signin_bubble_controller.h',
+ 'browser/ui/cocoa/one_click_signin_bubble_controller.mm',
+ 'browser/ui/cocoa/options/edit_search_engine_cocoa_controller.h',
+ 'browser/ui/cocoa/options/edit_search_engine_cocoa_controller.mm',
+ 'browser/ui/cocoa/speech_recognition_window_controller.h',
+ 'browser/ui/cocoa/speech_recognition_window_controller.mm',
+ 'browser/ui/cocoa/status_bubble_mac.h',
+ 'browser/ui/cocoa/status_bubble_mac.mm',
+ 'browser/ui/cocoa/styled_text_field.h',
+ 'browser/ui/cocoa/styled_text_field.mm',
+ 'browser/ui/cocoa/styled_text_field_cell.h',
+ 'browser/ui/cocoa/styled_text_field_cell.mm',
+ 'browser/ui/cocoa/tab_contents/previewable_contents_controller.h',
+ 'browser/ui/cocoa/tab_contents/previewable_contents_controller.mm',
+ 'browser/ui/cocoa/tab_contents/sad_tab_controller.h',
+ 'browser/ui/cocoa/tab_contents/sad_tab_controller.mm',
+ 'browser/ui/cocoa/tab_contents/sad_tab_view.h',
+ 'browser/ui/cocoa/tab_contents/sad_tab_view.mm',
+ 'browser/ui/cocoa/tabs/tab_controller.h',
+ 'browser/ui/cocoa/tabs/tab_controller.mm',
+ 'browser/ui/cocoa/tabs/tab_strip_model_observer_bridge.h',
+ 'browser/ui/cocoa/tabs/tab_strip_model_observer_bridge.mm',
+ 'browser/ui/cocoa/tabs/tab_strip_view.h',
+ 'browser/ui/cocoa/tabs/tab_strip_view.mm',
+ 'browser/ui/cocoa/tabs/tab_view.h',
+ 'browser/ui/cocoa/tabs/tab_view.mm',
+ 'browser/ui/cocoa/tabs/tab_window_controller.h',
+ 'browser/ui/cocoa/tabs/tab_window_controller.mm',
+ 'browser/ui/cocoa/task_manager_mac.h',
+ 'browser/ui/cocoa/task_manager_mac.mm',
+ 'browser/ui/cocoa/themed_window.h',
+ 'browser/ui/cocoa/themed_window.mm',
+ 'browser/ui/cocoa/toolbar/reload_button.h',
+ 'browser/ui/cocoa/toolbar/reload_button.mm',
+ 'browser/ui/cocoa/toolbar/toolbar_button.h',
+ 'browser/ui/cocoa/toolbar/toolbar_button.mm',
+ 'browser/ui/cocoa/toolbar/toolbar_controller.h',
+ 'browser/ui/cocoa/toolbar/toolbar_controller.mm',
+ 'browser/ui/cocoa/toolbar/toolbar_view.h',
+ 'browser/ui/cocoa/toolbar/toolbar_view.mm',
+ 'browser/ui/cocoa/ui_localizer.h',
+ 'browser/ui/cocoa/ui_localizer.mm',
+ 'browser/ui/cocoa/vertical_gradient_view.h',
+ 'browser/ui/cocoa/vertical_gradient_view.mm',
+ 'browser/ui/cocoa/view_id_util.h',
+ 'browser/ui/cocoa/view_id_util.mm',
+ 'browser/ui/cocoa/wrench_menu/menu_tracked_root_view.h',
+ 'browser/ui/cocoa/wrench_menu/menu_tracked_root_view.mm',
+ 'browser/ui/cocoa/wrench_menu/wrench_menu_controller.h',
+ 'browser/ui/cocoa/wrench_menu/wrench_menu_controller.mm',
+ 'browser/ui/login/login_prompt_mac.h',
+ 'browser/ui/login/login_prompt_mac.mm',
+ 'browser/ui/panels/panel_titlebar_view_cocoa.h',
+ 'browser/ui/panels/panel_titlebar_view_cocoa.mm',
+ 'browser/ui/panels/panel_window_controller_cocoa.h',
+ 'browser/ui/panels/panel_window_controller_cocoa.mm',
+ ],
+ 'mac_bundle_resources': [
+ '<@(mac_all_xibs)',
+ ],
+ }, # target chrome_xibs
+ ], # targets
+}
diff --git a/chrome/chrome_nibs.gypi b/chrome/chrome_nibs.gypi
new file mode 100644
index 0000000..de0e330
--- /dev/null
+++ b/chrome/chrome_nibs.gypi
@@ -0,0 +1,71 @@
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# This gypi file contains lists of XIB files that are used by Chromium. The
+# lists are divided by those files that need to be run through the localizer
+# tool and those that do not. A XIB should be listed in either one or the
+# other, but not both.
+{
+ 'variables': {
+ 'mac_translated_xibs': [
+ 'app/nibs/AvatarMenuItem.xib',
+ 'app/nibs/BookmarkAllTabs.xib',
+ 'app/nibs/BookmarkBar.xib',
+ 'app/nibs/BookmarkBubble.xib',
+ 'app/nibs/BookmarkEditor.xib',
+ 'app/nibs/BookmarkNameFolder.xib',
+ 'app/nibs/BrowserWindow.xib',
+ 'app/nibs/ChromeToMobileBubble.xib',
+ 'app/nibs/CollectedCookies.xib',
+ 'app/nibs/ContentBlockedCookies.xib',
+ 'app/nibs/ContentBlockedImages.xib',
+ 'app/nibs/ContentBlockedJavaScript.xib',
+ 'app/nibs/ContentBlockedMixedScript.xib',
+ 'app/nibs/ContentBlockedPlugins.xib',
+ 'app/nibs/ContentBlockedPopups.xib',
+ 'app/nibs/ContentBlockedGeolocation.xib',
+ 'app/nibs/ContentProtocolHandlers.xib',
+ 'app/nibs/CookieDetailsView.xib',
+ 'app/nibs/DownloadItem.xib',
+ 'app/nibs/DownloadShelf.xib',
+ 'app/nibs/EditSearchEngine.xib',
+ 'app/nibs/ExtensionInstallPrompt.xib',
+ 'app/nibs/ExtensionInstallPromptBundle.xib',
+ 'app/nibs/ExtensionInstallPromptInline.xib',
+ 'app/nibs/ExtensionInstallPromptNoWarnings.xib',
+ 'app/nibs/ExtensionInstalledBubble.xib',
+ 'app/nibs/FirstRunBubble.xib',
+ 'app/nibs/FirstRunDialog.xib',
+ 'app/nibs/FullscreenExitBubble.xib',
+ 'app/nibs/HttpAuthLoginSheet.xib',
+ 'app/nibs/HungRendererDialog.xib',
+ 'app/nibs/ImportProgressDialog.xib',
+ 'app/nibs/MainMenu.xib',
+ 'app/nibs/OneClickSigninBubble.xib',
+ 'app/nibs/SadTab.xib',
+ 'app/nibs/SaveAccessoryView.xib',
+ 'app/nibs/SpeechRecognitionBubble.xib',
+ 'app/nibs/TaskManager.xib',
+ 'app/nibs/Toolbar.xib',
+ 'app/nibs/WrenchMenu.xib',
+ ], # mac_translated_xibs
+ 'mac_untranslated_xibs': [
+ 'app/nibs/AboutIPC.xib',
+ 'app/nibs/BookmarkBarFolderWindow.xib',
+ 'app/nibs/FindBar.xib',
+ 'app/nibs/GlobalErrorBubble.xib',
+ 'app/nibs/HungRendererDialog.xib',
+ 'app/nibs/InfoBar.xib',
+ 'app/nibs/InfoBarContainer.xib',
+ 'app/nibs/Notification.xib',
+ 'app/nibs/Panel.xib',
+ 'app/nibs/PreviewableContents.xib',
+ 'app/nibs/TabView.xib',
+ ], # mac_untranslated_xibs
+ 'mac_all_xibs': [
+ '<@(mac_translated_xibs)',
+ '<@(mac_untranslated_xibs)',
+ ], # mac_all_xibs
+ }, # variables
+}