'atom/browser/api/atom_api_menu_views.h',
'atom/browser/api/atom_api_menu_mac.h',
'atom/browser/api/atom_api_menu_mac.mm',
- 'atom/browser/api/atom_api_menu_win.cc',
- 'atom/browser/api/atom_api_menu_win.h',
'atom/browser/api/atom_api_power_monitor.cc',
'atom/browser/api/atom_api_power_monitor.h',
'atom/browser/api/atom_api_protocol.cc',
'atom/browser/native_window_views.h',
'atom/browser/native_window_mac.h',
'atom/browser/native_window_mac.mm',
- 'atom/browser/native_window_win.cc',
- 'atom/browser/native_window_win.h',
'atom/browser/native_window_observer.h',
'atom/browser/net/adapter_request_job.cc',
'atom/browser/net/adapter_request_job.h',
'atom/browser/ui/views/global_menu_bar_x11.h',
'atom/browser/ui/views/linux_frame_view.cc',
'atom/browser/ui/views/linux_frame_view.h',
- 'atom/browser/ui/win/menu_2.cc',
- 'atom/browser/ui/win/menu_2.h',
- 'atom/browser/ui/win/native_menu_win.cc',
- 'atom/browser/ui/win/native_menu_win.h',
'atom/browser/ui/win/notify_icon_host.cc',
'atom/browser/ui/win/notify_icon_host.h',
'atom/browser/ui/win/notify_icon.cc',
#else
settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG;
#endif
- settings.dcheck_state =
- logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS;
logging::InitLogging(settings);
#endif // defined(OS_WIN)
.SetMethod("isEnabledAt", &Menu::IsEnabledAt)
.SetMethod("isVisibleAt", &Menu::IsVisibleAt)
.SetMethod("_attachToWindow", &Menu::AttachToWindow)
-#if defined(OS_WIN)
- .SetMethod("_updateStates", &Menu::UpdateStates)
-#endif
.SetMethod("_popup", &Menu::Popup);
}
bool IsEnabledAt(int index) const;
bool IsVisibleAt(int index) const;
-#if defined(OS_WIN)
- virtual void UpdateStates() = 0;
-#endif
-
DISALLOW_COPY_AND_ASSIGN(Menu);
};
void WebContents::OnRendererMessage(const base::string16& channel,
const base::ListValue& args) {
// webContents.emit(channel, new Event(), args...);
- Emit(UTF16ToUTF8(channel), args, web_contents(), NULL);
+ Emit(base::UTF16ToUTF8(channel), args, web_contents(), NULL);
}
void WebContents::OnRendererMessageSync(const base::string16& channel,
const base::ListValue& args,
IPC::Message* message) {
// webContents.emit(channel, new Event(sender, message), args...);
- Emit(UTF16ToUTF8(channel), args, web_contents(), message);
+ Emit(base::UTF16ToUTF8(channel), args, web_contents(), message);
}
// static
if (PathService::Get(base::FILE_EXE, &path)) {
scoped_ptr<FileVersionInfo> version_info(
FileVersionInfo::CreateFileVersionInfo(path));
- return UTF16ToUTF8(version_info->product_version());
+ return base::UTF16ToUTF8(version_info->product_version());
}
return ATOM_VERSION_STRING;
if (PathService::Get(base::FILE_EXE, &path)) {
scoped_ptr<FileVersionInfo> version_info(
FileVersionInfo::CreateFileVersionInfo(path));
- return UTF16ToUTF8(version_info->product_name());
+ return base::UTF16ToUTF8(version_info->product_name());
}
return "Atom-Shell";
if (title->first) {
bool prevent_default = false;
- std::string text = UTF16ToUTF8(title->first->GetTitle());
+ std::string text = base::UTF16ToUTF8(title->first->GetTitle());
FOR_EACH_OBSERVER(NativeWindowObserver,
observers_,
OnPageTitleUpdated(&prevent_default, text));
draggable_region_->contains(location.x(), location.y()))
return false;
+#if defined(USE_X11)
// And the events on border for dragging resizable frameless window.
if (!has_frame_ && CanResize()) {
LinuxFrameView* frame = static_cast<LinuxFrameView*>(
window_->non_client_view()->frame_view());
return frame->ResizingBorderHitTest(location) == HTNOWHERE;
}
+#endif
return true;
}
// Distinguish directories from regular files.
bool IsDirectory(const base::FilePath& path) {
- base::PlatformFileInfo file_info;
- return file_util::GetFileInfo(path, &file_info) ?
+ base::File::Info file_info;
+ return base::GetFileInfo(path, &file_info) ?
file_info.is_directory : path.EndsWithSeparator();
}
// the we create a description "QQQ File (.qqq)").
include_all_files = true;
// TODO(zcbenz): should be localized.
- desc = base::i18n::ToUpper(WideToUTF16(ext_name)) + L" File";
+ desc = base::i18n::ToUpper(base::WideToUTF16(ext_name)) + L" File";
}
desc += L" (*." + ext_name + L")";
filters.size()));
if (!title.empty())
- GetPtr()->SetTitle(UTF8ToUTF16(title).c_str());
+ GetPtr()->SetTitle(base::UTF8ToUTF16(title).c_str());
SetDefaultFolder(default_path);
}
bool Show(atom::NativeWindow* parent_window) {
atom::NativeWindow::DialogScope dialog_scope(parent_window);
- HWND window = parent_window ? parent_window->GetNativeWindow() : NULL;
+ // HWND window = parent_window ? parent_window->GetNativeWindow() : NULL;
+ // FIXME
+ HWND window = NULL;
return dialog_->DoModal(window) == IDOK;
}
NOTIFYICONDATA icon_data;
InitIconData(&icon_data);
icon_data.uFlags = NIF_TIP;
- wcscpy_s(icon_data.szTip, UTF8ToUTF16(tool_tip).c_str());
+ wcscpy_s(icon_data.szTip, base::UTF8ToUTF16(tool_tip).c_str());
BOOL result = Shell_NotifyIcon(NIM_MODIFY, &icon_data);
if (!result)
LOG(WARNING) << "Unable to set tooltip for status tray icon";
-// Copyright (c) 2014 GitHub, Inc. All rights reserved.
-// Use of this source code is governed by the MIT license that can be
-// found in the LICENSE file.
-
-// This file is generated by script/bootstrap.py, you should never modify it
-// by hand.
-
-#ifndef ATOM_COMMON_CHROME_VERSION_H_
-#define ATOM_COMMON_CHROME_VERSION_H_
-
-#define CHROME_VERSION_STRING "35.0.1916.153"
-#define CHROME_VERSION "v" CHROME_VERSION_STRING
-
-#endif // ATOM_COMMON_CHROME_VERSION_H_
+// Copyright (c) 2014 GitHub, Inc. All rights reserved.\r
+// Use of this source code is governed by the MIT license that can be\r
+// found in the LICENSE file.\r
+\r
+// This file is generated by script/bootstrap.py, you should never modify it\r
+// by hand.\r
+\r
+#ifndef ATOM_COMMON_CHROME_VERSION_H_\r
+#define ATOM_COMMON_CHROME_VERSION_H_\r
+\r
+#define CHROME_VERSION_STRING "35.0.1916.153"\r
+#define CHROME_VERSION "v" CHROME_VERSION_STRING\r
+\r
+#endif // ATOM_COMMON_CHROME_VERSION_H_\r
skip_system_crash_handler_ = skip_system_crash_handler;
base::FilePath temp_dir;
- if (!file_util::GetTempDir(&temp_dir)) {
+ if (!base::GetTempDir(&temp_dir)) {
LOG(ERROR) << "Cannot get temp directory";
return;
}
- base::string16 pipe_name = ReplaceStringPlaceholders(kPipeNameFormat,
- UTF8ToUTF16(product_name),
- NULL);
+ base::string16 pipe_name = ReplaceStringPlaceholders(
+ kPipeNameFormat, base::UTF8ToUTF16(product_name), NULL);
// Wait until the crash service is started.
HANDLE waiting_event =
custom_info_entries_.push_back(google_breakpad::CustomInfoEntry(
L"prod", L"Atom-Shell"));
custom_info_entries_.push_back(google_breakpad::CustomInfoEntry(
- L"ver", UTF8ToWide(version).c_str()));
+ L"ver", base::UTF8ToWide(version).c_str()));
for (StringMap::const_iterator iter = upload_parameters_.begin();
iter != upload_parameters_.end(); ++iter) {
custom_info_entries_.push_back(google_breakpad::CustomInfoEntry(
- UTF8ToWide(iter->first).c_str(),
- UTF8ToWide(iter->second).c_str()));
+ base::UTF8ToWide(iter->first).c_str(),
+ base::UTF8ToWide(iter->second).c_str()));
}
custom_info_.entries = &custom_info_entries_.front();
CrashMap::const_iterator it = map.find(L"breakpad-dump-location");
if (it != map.end()) {
base::FilePath alternate_dump_location = base::FilePath(it->second);
- file_util::CreateDirectoryW(alternate_dump_location);
+ base::CreateDirectoryW(alternate_dump_location);
alternate_dump_location = alternate_dump_location.Append(
dump_location.BaseName());
base::Move(dump_location, alternate_dump_location);
bool GetCrashServiceDirectory(const std::wstring& application_name,
base::FilePath* dir) {
base::FilePath temp_dir;
- if (!file_util::GetTempDir(&temp_dir))
+ if (!base::GetTempDir(&temp_dir))
return false;
temp_dir = temp_dir.Append(application_name + L" Crashes");
if (!base::PathExists(temp_dir)) {
- if (!file_util::CreateDirectory(temp_dir))
+ if (!base::CreateDirectory(temp_dir))
return false;
}
*dir = temp_dir;
// Force all builtin modules to be referenced so they can actually run their
// DSO constructors, see http://git.io/DRIqCg.
-#if defined(OS_WIN)
-#define REFERENCE_MODULE(name) \
- __pragma(comment(linker, "/export:_register_" #name))
-#else
#define REFERENCE_MODULE(name) \
extern "C" void _register_ ## name(void); \
void (*fp_register_ ## name)(void) = _register_ ## name
-#endif
// Node's builtin modules.
REFERENCE_MODULE(cares_wrap);
REFERENCE_MODULE(fs_event_wrap);
#if defined(OS_WIN)
std::vector<std::string> String16VectorToStringVector(
- const std::vector<string16>& vector) {
+ const std::vector<base::string16>& vector) {
std::vector<std::string> utf8_vector;
utf8_vector.reserve(vector.size());
for (size_t i = 0; i < vector.size(); ++i)
- utf8_vector.push_back(UTF16ToUTF8(vector[i]));
+ utf8_vector.push_back(base::UTF16ToUTF8(vector[i]));
return utf8_vector;
}
#endif
// is empty. This function tells if it is.
bool ValidateShellCommandForScheme(const std::string& scheme) {
base::win::RegKey key;
- std::wstring registry_path = ASCIIToWide(scheme) +
+ std::wstring registry_path = base::ASCIIToWide(scheme) +
L"\\shell\\open\\command";
key.Open(HKEY_CLASSES_ROOT, registry_path.c_str(), KEY_READ);
if (!key.Valid())
['exclude', '_linux(_unittest)?\\.(h|cc)$'],
['exclude', '(^|/)linux_[^/]*\\.(h|cc)$'],
['exclude', '(^|/)linux/'],
+ ['exclude', '_x11(_unittest)?\\.(h|cc)$'],
+ ['exclude', '(^|/)x11_[^/]*\\.(h|cc)$'],
+ ['exclude', '(^|/)x11/'],
],
}],
['OS!="android"', {