text
stringlengths
1
24.5M
// stdafx.cpp : source file that includes just the standard includes // mhook-test.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file
// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #pragma once #ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later. #define _WIN32_WINNT 0x0501 // Change this to ...
// Copyright (C) 2003, Matt Conover (mconover@gmail.com) #include "cpu.h" #include <assert.h> // NOTE: this assumes default scenarios (i.e., we assume CS/DS/ES/SS and flat // and all have a base of 0 and limit of 0xffffffff, we don't try to verify // that in the GDT) // // TODO: use inline assembly to get selector for...
// Copyright (C) 2003, Matt Conover (mconover@gmail.com) #ifndef CPU_H #define CPU_H #ifdef __cplusplus extern "C" { #endif #include <windows.h> #include "misc.h" // Windows SDK assumes default alignment. #pragma pack(push,1) //////////////////////////////////////////////////////// // System descriptors /////////...
// Copyright (C) 2004, Matt Conover (mconover@gmail.com) #undef NDEBUG #include <assert.h> #include <windows.h> #include "disasm.h" #ifdef NO_SANITY_CHECKS #define NDEBUG #undef assert #define assert(x) #endif ////////////////////////////////////////////////////////////////////// // Global variables /////////////////...
// Copyright (C) 2004, Matt Conover (mconover@gmail.com) // // WARNING: // I wouldn't recommend changing any flags like OP_*, ITYPE_*, or *_MASK // aside from those marked as UNUSED. This is because the flags parts of // the flags are architecture independent and other are left to specific // architectures to define, s...
// Copyright (C) 2004, Matt Conover (mconover@gmail.com) #undef NDEBUG #include <assert.h> #include "disasm.h" #include "cpu.h" // Since addresses are internally represented as 64-bit, we need to specially handle // cases where IP + Displacement wraps around for 16-bit/32-bit operand size // Otherwise, ignorethe possi...
// Copyright (C) 2004, Matt Conover (mconover@gmail.com) #ifndef X86_DISASM_H #define X86_DISASM_H #ifdef __cplusplus extern "C" { #endif // NOTE: the processor may actually accept less than this amount (officially 15) // #define AMD64_MAX_INSTRUCTION_LEN 15 // theoretical max 25=5+2+1+1+8+8 #define AMD64_MAX_PREFIX_L...
// Copyright (C) 2004, Matt Conover (mconover@gmail.com) // // The opcode tables in this file are based off the Intel Instruction Set Reference // and an assortment of disassemblers, primarily libdisasm (by mammon) #ifndef DISASM_X86_TABLES #define DISASM_X86_TABLES #define X86_GET_REG(val) ((val) & 7) #define X86_GE...
// Copyright (C) 2002, Matt Conover (mconover@gmail.com) #include "misc.h" BOOL IsHexChar(BYTE ch) { switch (ch) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case 'A': case 'a': case 'B': case 'b': case 'C': case 'c': case 'D': case 'd': case 'E...
// Copyright (C) 2002, Matt Conover (mconover@gmail.com) #ifndef MISC_H #define MISC_H #ifdef __cplusplus extern "C" { #endif #include <windows.h> #include <stdio.h> #include <stdarg.h> #include <assert.h> #define MIN(a, b) ((a) < (b) ? (a) : (b)) #define MAX(a, b) ((a) > (b) ? (a) : (b)) // NOTE: start is inclusive...
//Copyright (c) 2007-2008, Marton Anka // //Permission is hereby granted, free of charge, to any person obtaining a //copy of this software and associated documentation files (the "Software"), //to deal in the Software without restriction, including without limitation //the rights to use, copy, modify, merge, publis...
//Copyright (c) 2007-2008, Marton Anka // //Permission is hereby granted, free of charge, to any person obtaining a //copy of this software and associated documentation files (the "Software"), //to deal in the Software without restriction, including without limitation //the rights to use, copy, modify, merge, publis...
/*** Autogenerated by WIDL 1.6 from include/wincodec.idl - Do not edit ***/ #ifndef __REQUIRED_RPCNDR_H_VERSION__ #define __REQUIRED_RPCNDR_H_VERSION__ 475 #endif #include <rpc.h> #include <rpcndr.h> #ifndef COM_NO_WINDOWS_H #include <windows.h> #include <ole2.h> #endif #ifndef __wincodec_h__ #define __wincodec_h__...
/* config.h. Manually derived from config.h.in, with the subset of defines * that actually affect the library, given that most of them are meant for the * tests, which we don't build. */ #ifndef THIRD_PARTY_SNAPPY_OPENSOURCE_CMAKE_CONFIG_H_ #define THIRD_PARTY_SNAPPY_OPENSOURCE_CMAKE_CONFIG_H_ /* Define to 1 if the...
/************************************************************************** * * Copyright 2015 Brian Paul * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software witho...
/************************************************************************** * * Copyright 2015 Brian Paul * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software witho...
/************************************************************************** * * Copyright 2011 Jose Fonseca * Copyright 2008-2009 VMware, Inc. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwa...
/************************************************************************** * * Copyright 2011 Jose Fonseca * Copyright 2008-2009 VMware, Inc. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwa...
/************************************************************************** * * Copyright 2011 Jose Fonseca * Copyright 2008-2009 VMware, Inc. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwa...
/************************************************************************** * * Copyright 2011 Jose Fonseca * Copyright 2008-2009 VMware, Inc. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwa...
/************************************************************************** * * Copyright 2016 VMware, Inc * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software with...
/************************************************************************** * * Copyright 2011 Jose Fonseca * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software wit...
/************************************************************************** * * Copyright 2014 VMware, Inc. * Copyright 2011 Jose Fonseca * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"),...
/************************************************************************** * * Copyright 2014 VMware, Inc. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software wit...
/************************************************************************** * * Copyright 2011 Jose Fonseca * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software wit...
/* * Copyright © 2019 Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, pu...
/* * Copyright © 2019 Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, pu...
/************************************************************************** * * Copyright 2011 Jose Fonseca * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software wit...
/************************************************************************** * * Copyright 2011 Jose Fonseca * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software wit...
/************************************************************************** * * Copyright 2011 Jose Fonseca * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software wit...
/************************************************************************** * * Copyright 2010-2016 VMware, Inc. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Softwar...
/************************************************************************** * * Copyright 2010-2016 VMware, Inc. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Softwar...
/********************************************************************* * * Copyright 2012 Intel Corporation * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software wit...
/* * Copyright © 2020 Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, pu...
/* * Copyright © 2020 Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, pu...
/************************************************************************** * * Copyright 2014-2016 VMware, Inc. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Softwar...
/************************************************************************** * * Copyright 2014-2016 VMware, Inc. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Softwar...
/************************************************************************** * * Copyright 2018 VMware, Inc. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software wit...
// system headers #include <vector> // own headers #include "logging.h" #include "lib.h" int main(int argc, char** argv) { if (argc <= 1) { log_message("Usage: %s <AppImage file> [args...]\n", argv[0]); return EXIT_CODE_FAILURE; } std::vector<char*> args(&argv[2], &argv[argc]); return...
// system headers #include <cstdio> #include <cstdlib> #include <cstdint> #include <type_traits> #include <linux/elf.h> #include <byteswap.h> #include <fstream> #include <iostream> #include <stdexcept> // own headers #include "elf.h" #include "logging.h" #if __BYTE_ORDER == __LITTLE_ENDIAN #define NATIVE_BYTE_ORDER E...
#pragma once #include <string> /** * Check whether file is linked staticallly. * @param filename path to ELF file * @return true if file is statically linked, false otherwise */ bool is_statically_linked_elf(const std::string& filename); /** * Calculate size of ELF binary. Useful e.g., to estimate the size of t...
// system headers #include <cassert> #include <unistd.h> #include <vector> // own headers #include "logging.h" #include "lib.h" bool executableExists(const std::string& path) { if (access(path.c_str(), X_OK) != 0) { log_debug("executable %s does not exist\n", path.c_str()); return false; } ...
// system headers #include <cstdio> #include <sys/mman.h> #include <unistd.h> #include <fcntl.h> #include <wait.h> #include <vector> #include <memory.h> #include <memory> #include <stdexcept> #include <cassert> #include <filesystem> // own headers #include "elf.h" #include "logging.h" #include "lib.h" #include "binfmt...
#pragma once // system headers #include <string> #include <vector> #define EXIT_CODE_FAILURE 0xff int bypassBinfmtAndRunAppImage(const std::string& appimage_path, const std::vector<char*>& target_args);
#pragma once // system headers #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #ifndef COMPONENT_NAME #error component name undefined #endif inline static int v_log_message(const char* const format, va_list args) { static const char prefix[] = "[appimagelauncher-binfmt-bypass/" COM...
// system headers #include <stdio.h> #include <dlfcn.h> #include <unistd.h> #include <memory.h> #include <stdlib.h> #include <fcntl.h> #include <limits.h> #include <errno.h> #include <stdbool.h> // own headers #include "logging.h" // saw this trick somewhere on the Internet... don't recall where it was, but it works ...
// system headers #include <sstream> // library headers #include <QCoreApplication> #include <QCommandLineParser> // local headers #include "CommandFactory.h" #include "exceptions.h" #include "logging.h" using namespace appimagelauncher::cli; using namespace appimagelauncher::cli::commands; int main(int argc, char*...
#pragma once // system headers #include <memory> // library headers #include <QList> #include <QString> namespace appimagelauncher { namespace cli { namespace commands { /** * Base class for CLI command implementations. */ class Command { publ...
// local headers #include "CommandFactory.h" #include "IntegrateCommand.h" #include "UnintegrateCommand.h" #include "WouldIntegrateCommand.h" #include "exceptions.h" namespace appimagelauncher { namespace cli { namespace commands { std::shared_ptr<Command> CommandFactory::getCommandByName(cons...
#pragma once // system headers #include <memory> // library headers #include <QString> // local headers #include <Command.h> /** * Creates Commands. */ namespace appimagelauncher { namespace cli { namespace commands { class CommandFactory { public: static std::...
#pragma once // system headers #include <stdexcept> // library headers #include <QString> namespace appimagelauncher { namespace cli { namespace commands { class CliError : public std::runtime_error { public: explicit CliError(const QString& message) : std::runtime...
// library headers #include <QFileInfo> // local headers #include "IntegrateCommand.h" #include "exceptions.h" #include "shared.h" #include "logging.h" namespace appimagelauncher { namespace cli { namespace commands { void IntegrateCommand::exec(QList<QString> arguments) { if (...
#pragma once // local headers #include "Command.h" namespace appimagelauncher { namespace cli { namespace commands { /** * Integrates AppImages passed as arguments on the commandline. */ class IntegrateCommand : public Command { void exec(Q...
// library headers #include <QFileInfo> // local headers #include "UnintegrateCommand.h" #include "exceptions.h" #include "shared.h" #include "logging.h" namespace appimagelauncher { namespace cli { namespace commands { void UnintegrateCommand::exec(QList<QString> arguments) { ...
#pragma once // local headers #include "Command.h" namespace appimagelauncher { namespace cli { namespace commands { /** * Integrates AppImages passed as arguments on the commandline. */ class UnintegrateCommand : public Command { void exec...
// library headers #include <QFileInfo> extern "C" { #include <appimage/appimage.h> } // local headers #include "WouldIntegrateCommand.h" #include "exceptions.h" #include "shared.h" #include "logging.h" namespace appimagelauncher { namespace cli { namespace commands { void WouldIntegrateComma...
#pragma once // local headers #include "Command.h" namespace appimagelauncher { namespace cli { namespace commands { /** * Check whether an AppImage would be integrated. */ class WouldIntegrateCommand : public Command { void exec(QList<QStr...
#pragma once // system headers #include <string.h> // library headers #include <QTextStream> #include <QDebug> // wrapper for stdout #define qout() QTextStream(stdout, QIODevice::WriteOnly) // wrapper for stderr #define qerr() QTextStream(stderr, QIODevice::WriteOnly)
// STL headers #include <chrono> // library headers #include <QDirIterator> // local headers #include "daemon.h" #include "shared.h" #include "appimage/appimage.h" using namespace std::chrono_literals; #define UPDATE_WATCHED_DIRECTORIES_INTERVAL 30s namespace appimagelauncher::daemon { Q_LOGGING_CATEGORY(daem...
#pragma once // library headers #include <QObject> #include <QSettings> #include <QTimer> #include <QLoggingCategory> // local headers #include "worker.h" #include "types.h" #include "filesystemwatcher.h" namespace appimagelauncher::daemon { Q_DECLARE_LOGGING_CATEGORY(daemonCat) class Daemon : public QObje...
// system includes #include <deque> #include <iostream> #include <sstream> #include <sys/stat.h> // library includes #include <QCommandLineParser> #include <QCoreApplication> #include <QDebug> #include <QDirIterator> #include <QTimer> #include <appimage/appimage.h> // local includes #include "shared.h" #include "daem...
// system includes #include <atomic> #include <iostream> #include <deque> // library includes #include <QDebug> #include <QFile> #include <QObject> #include <QSysInfo> #include <QTimer> #include <QThreadPool> #include <QMutexLocker> #include <appimage/appimage.h> // local includes #include "worker.h" #include "shared...
// system includes #include <memory> // library includes #include <QObject> #include <QLoggingCategory> #pragma once namespace appimagelauncher::daemon { Q_DECLARE_LOGGING_CATEGORY(workerCat) class Worker : public QObject { Q_OBJECT private: class PrivateData; std::shared_ptr<P...
// system includes #include <iostream> #include <map> #include <unistd.h> // library includes #include <QDir> #include <QMutex> #include <QTimer> #include <QThread> #include <sys/inotify.h> // local includes #include "filesystemwatcher.h" namespace { class INotifyEvent { public: uint32_t mask; ...
// system includes #include <algorithm> #include <memory> #include <unordered_set> // library includes #include <QDir> #include <QObject> #include <QLoggingCategory> #include <QSet> #include <QString> #include <QThread> // local includes #include "types.h" #pragma once namespace appimagelauncher::daemon { Q_DE...
// system headers #include <iostream> // library headers #include <QDebug> #include <QDir> #include <QLibraryInfo> #include <QString> // local headers #include <shared.h> #include "translationmanager.h" TranslationManager::TranslationManager(QCoreApplication& app) : app(app) { // set up translations auto qtT...
#pragma once // library includes #include <QApplication> #include <QTranslator> #include <QList> /* * Installs translations for AppImageLauncher UIs in a Qt application. * * You need to keep instances of this alive until the application is terminated. */ class TranslationManager { private: const QCoreApplicat...
// system includes #include <fstream> #include <iostream> #include <memory> #include <sstream> #include <tuple> extern "C" { #include <appimage/appimage.h> #include <glib.h> // #include <libgen.h> #include <sys/stat.h> #include <stdio.h> #include <unistd.h> } // library includes #include <QDebu...
/* central file for utility functions */ #pragma once // system headers #include <string> #include <memory> // library headers #include <QDir> #include <QString> #include <QSettings> // local headers #include "types.h" enum IntegrationState { INTEGRATION_FAILED = 0, INTEGRATION_SUCCESSFUL, INTEGRATION_...
#include "types.h" QDebug operator<<(QDebug debug, const QDirSet& set) { QDebugStateSaver saver(debug); for (const auto& item : set) { debug << item; } return debug; }
#pragma once // system headers #include <set> // library headers #include <QDebug> #include <QDir> struct QDirComparator { public: size_t operator()(const QDir& a, const QDir& b) const { return a.absolutePath() < b.absolutePath(); } }; typedef std::set<QDir, QDirComparator> QDirSet; QDebug operato...
// system includes #include <iostream> #include <sys/stat.h> // library includes #include <QDateTime> #include <QDir> #include <QDirIterator> #include <appimage/appimage.h> // local includes #include "trashbin.h" #include "shared.h" class TrashBin::PrivateData { public: const QDir dir; public: ...
// system includes #include <QString> #pragma once class TrashBin { private: class PrivateData; PrivateData* d; public: TrashBin(); public: QString path(); public: // move AppImage into trash bin directory bool disposeAppImage(const QString& pathToApp...
// system includes #include <stdexcept> // library includes #include <QDesktopServices> #include <QDialog> #include <QDialogButtonBox> #include <QLabel> #include <QDebug> #include <QFileDialog> #include <QGraphicsScene> #include <QGraphicsView> #include <QGraphicsPixmapItem> #include <QImage> #include <QLayout> #inclu...
void showFirstRunDialog();
// system includes #include <sstream> #include <utility> // library includes #include <QStyle> // local headers #include "integration_dialog.h" #include "ui_integration_dialog.h" IntegrationDialog::IntegrationDialog(QString pathToAppImage, QString integratedAppImagesDestinationPath, ...
#ifndef APPIMAGELAUNCHER_INTEGRATION_DIALOG_H #define APPIMAGELAUNCHER_INTEGRATION_DIALOG_H // library includes #include <QDialog> QT_BEGIN_NAMESPACE namespace Ui { class IntegrationDialog; } QT_END_NAMESPACE class IntegrationDialog : public QDialog { Q_OBJECT public: enum ResultingAction { IntegrateAnd...
// system includes #include <fstream> #include <iostream> #include <sstream> extern "C" { #include <sys/stat.h> #include <libgen.h> #include <unistd.h> #include <glib.h> } // library includes #include <QApplication> #include <QCommandLineParser> #include <QDebug> #include <QDir> #include <QFile> #include <QFileDialog...
// system includes #include <iostream> #include <sstream> // library includes #include <QApplication> #include <QCommandLineParser> #include <QDir> #include <QFile> #include <QFileDialog> #include <QFileInfo> #include <QLibraryInfo> #include <QMessageBox> #include <QObject> #include <QPushButton> #include <QTranslator...
// libraries #include <QDebug> #include <QFileDialog> #include <QFileIconProvider> #include <QStandardPaths> // local #include "settings_dialog.h" #include "ui_settings_dialog.h" #include "shared.h" SettingsDialog::SettingsDialog(QWidget* parent) : QDialog(parent), ui(new Ui::SettingsDialog), ...
#pragma once // system #include <memory> // libraries #include <QDialog> #include <QListWidgetItem> #include <QSettings> namespace Ui { class SettingsDialog; } class SettingsDialog : public QDialog { Q_OBJECT public: explicit SettingsDialog(QWidget* parent = nullptr); ~SettingsDialog() override; pro...
// libraries #include <QApplication> // local #include <translationmanager.h> #include <shared.h> #include "settings_dialog.h" int main(int argc, char** argv) { QApplication app(argc, argv); QApplication::setApplicationDisplayName("AppImageLauncher Settings"); QApplication::setWindowIcon(QIcon(":/AppImage...
// system includes #include <iostream> #include <sstream> // library includes #include <QApplication> #include <QCheckBox> #include <QCommandLineParser> #include <QFile> #include <QLibraryInfo> #include <QMessageBox> #include <QPushButton> #include <QTranslator> #include <QThread> extern "C" { #include <appimage/a...
#include <windows.h> #include <string> #include <resource.h> #include <direct.h> using namespace std; // ############################# // ### Conversion to WString ### // ############################# wstring ToWString(const char* utf8){ if (utf8 == NULL || *utf8 == '\0') { return wstring(); } else { con...
ÿþ//{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by launch.rc // #define NODE_EXECUTABLE 101 #define DEFAULT_...
#include "appjs.h" #include "appjs_app.h" namespace appjs { using namespace v8; v8::Handle<Value> InitApp(const Arguments& args) { HandleScope scope; return scope.Close(App::NewInstance(args)); } void Init(v8::Handle<v8::Object> target) { App::Init(); Window::Init(); Menu::Init(); StatusIcon::Init(); ...
#ifndef APPJS_H #define APPJS_H #pragma once #include <node.h> #include <node_version.h> #include <string> #ifndef __WIN__ typedef char TCHAR; #define TEXT(t) t #endif typedef std::basic_string<TCHAR> tstring; #define APPJS_PSYMBOL(s) v8::Persistent<v8::String>::New(v8::String::NewSymbol(s)) #define MAKE_BOOLEAN(v)...
#include <node.h> #include "appjs.h" #include "appjs_app.h" #include "appjs_window.h" #include "appjs_menu.h" #include "appjs_status_icon.h" #include "includes/cef.h" #include "includes/util.h" namespace appjs { using namespace v8; App::App() {}; App::~App() {}; bool App::initialized_ = false; Persistent<Function> ...
#ifndef APPJS_APP_H #define APPJS_APP_H #pragma once #include "appjs.h" #include "appjs_window.h" #include "appjs_menu.h" #include "appjs_status_icon.h" namespace appjs { using namespace v8; class App : public node::ObjectWrap { DEFINE_OBJECT_FACTORY(App); DEFINE_CLASS_FUNCTION(ScreenWidth); DEFINE_CLASS_FUNC...
#include <node.h> #include "appjs.h" #include "appjs_menu.h" #include "includes/cef_handler.h" #include "includes/util.h" extern CefRefPtr<ClientHandler> g_handler; namespace appjs { using namespace v8; Menu::Menu(){} Menu::~Menu(){} Persistent<Function> Menu::constructor; void Menu::Init() { DECLARE_CONSTRUCTO...
#ifndef APPJS_MENU_H #define APPJS_MENU_H #pragma once #include "appjs.h" #include "native_menu/native_menu.h" namespace appjs { using namespace v8; class Menu : public node::ObjectWrap { DEFINE_OBJECT_FACTORY(Menu); }; } /* appjs */ #endif /* end of APPJS_MENU_H */
#include <node.h> #include "appjs.h" #include "appjs_status_icon.h" #include "includes/cef_handler.h" #include "includes/util.h" extern CefRefPtr<ClientHandler> g_handler; namespace appjs { using namespace v8; StatusIcon::StatusIcon(){} StatusIcon::~StatusIcon(){} Persistent<Function> StatusIcon::constructor; voi...
#ifndef APPJS_STATUS_ICON_H #define APPJS_STATUS_ICON_H #pragma once #include "appjs.h" #include "native_status_icon/native_status_icon.h" namespace appjs { using namespace v8; class StatusIcon : public node::ObjectWrap { DEFINE_OBJECT_FACTORY(StatusIcon); DEFINE_PROTOTYPE_METHOD(Show); DEFINE_PROTOTYPE_METHO...
#include <node.h> #include "appjs.h" #include "appjs_window.h" #include "includes/cef_handler.h" #include "includes/util.h" extern CefRefPtr<ClientHandler> g_handler; namespace appjs { using namespace v8; Window::Window(){} Window::~Window(){} Persistent<Function> Window::constructor; void Window::Init() { DECL...
#ifndef APPJS_WINDOW_H #define APPJS_WINDOW_H #pragma once #include "appjs.h" #include "native_window/native_window.h" namespace appjs { using namespace v8; class Window : public node::ObjectWrap { DEFINE_OBJECT_FACTORY(Window); DEFINE_PROTOTYPE_METHOD(SetMenuBar); DEFINE_PROTOTYPE_METHOD(OpenDialog); DEFIN...
#include "appjs.h" extern "C" void init (v8::Handle<v8::Object> target) { appjs::Init (target); }
#include "include/cef_app.h" #include "includes/cef_scheme_handler.h" #include "includes/cef_handler.h" #include "includes/cef.h" #define O_ENABLE(N) !initOptions->getBoolean(#N, true) #define O_DISABLE(N) !initOptions->getBoolean(#N, false) #define O_STRING(N) initOptions->getString(#N, (char *)"") #define O_INTEGER(...
#ifndef APPJS_CEF_H #define APPJS_CEF_H #pragma once #include "util.h" #include "cef_loop.h" #ifdef __WIN__ #include <windows.h> #include <algorithm> #define min(left,right) std::min(left,right) #define max(left,right) std::max(left,right) #include <gdiplus.h> #undef min #undef max #include <shlobj.h> #include <shlwa...
#include <node.h> #include "include/cef_base.h" #include "include/cef_browser.h" #include "include/cef_frame.h" #include "includes/cef_handler.h" #include "includes/cef_sync_handler.h" #include "native_window/native_window.h" #include "appjs_window.h" using namespace v8; using namespace appjs; CefRefPtr<ClientHandle...