"Fossies" - the Fresh Open Source Software Archive

Member "electron-4.2.12/atom/common/native_mate_converters/accelerator_converter.h" (16 Oct 2019, 643 Bytes) of package /linux/www/electron-4.2.12.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "accelerator_converter.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 6.1.0_vs_7.0.0.

    1 // Copyright (c) 2014 GitHub, Inc.
    2 // Use of this source code is governed by the MIT license that can be
    3 // found in the LICENSE file.
    4 
    5 #ifndef ATOM_COMMON_NATIVE_MATE_CONVERTERS_ACCELERATOR_CONVERTER_H_
    6 #define ATOM_COMMON_NATIVE_MATE_CONVERTERS_ACCELERATOR_CONVERTER_H_
    7 
    8 #include "native_mate/converter.h"
    9 
   10 namespace ui {
   11 class Accelerator;
   12 }
   13 
   14 namespace mate {
   15 
   16 template <>
   17 struct Converter<ui::Accelerator> {
   18   static bool FromV8(v8::Isolate* isolate,
   19                      v8::Local<v8::Value> val,
   20                      ui::Accelerator* out);
   21 };
   22 
   23 }  // namespace mate
   24 
   25 #endif  // ATOM_COMMON_NATIVE_MATE_CONVERTERS_ACCELERATOR_CONVERTER_H_