tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

mozActionElements.h (2211B)


      1 /* clang-format off */
      2 /* -*- Mode: Objective-C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      3 /* clang-format on */
      4 /* This Source Code Form is subject to the terms of the Mozilla Public
      5 * License, v. 2.0. If a copy of the MPL was not distributed with this
      6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      7 
      8 #import <Cocoa/Cocoa.h>
      9 #import "mozAccessible.h"
     10 
     11 /* Simple subclasses for things like checkboxes, buttons, etc. */
     12 
     13 @interface mozButtonAccessible : mozAccessible
     14 
     15 // override
     16 - (NSNumber*)moxHasPopup;
     17 
     18 // override
     19 - (NSString*)moxPopupValue;
     20 
     21 @end
     22 
     23 @interface mozPopupButtonAccessible : mozButtonAccessible
     24 
     25 // override
     26 - (NSString*)moxTitle;
     27 
     28 // override
     29 - (BOOL)moxBlockSelector:(SEL)selector;
     30 
     31 // override
     32 - (NSArray*)moxChildren;
     33 
     34 // override
     35 - (void)stateChanged:(uint64_t)state isEnabled:(BOOL)enabled;
     36 
     37 @end
     38 
     39 @interface mozCheckboxAccessible : mozButtonAccessible
     40 
     41 // override
     42 - (id)moxValue;
     43 
     44 // override
     45 - (void)stateChanged:(uint64_t)state isEnabled:(BOOL)enabled;
     46 
     47 @end
     48 
     49 // LocalAccessible for a radio button
     50 @interface mozRadioButtonAccessible : mozCheckboxAccessible
     51 
     52 // override
     53 - (NSArray*)moxLinkedUIElements;
     54 
     55 @end
     56 
     57 /**
     58 * Accessible for a PANE
     59 */
     60 @interface mozPaneAccessible : mozAccessible
     61 
     62 // override
     63 - (NSArray*)moxChildren;
     64 
     65 @end
     66 
     67 /**
     68 * Base accessible for a range, an acc with a min, max that cannot
     69 * be modified by the user directly.
     70 */
     71 
     72 @interface mozRangeAccessible : mozAccessible
     73 
     74 // override
     75 - (id)moxValue;
     76 
     77 // override
     78 - (id)moxMinValue;
     79 
     80 // override
     81 - (id)moxMaxValue;
     82 
     83 // override
     84 - (NSString*)moxOrientation;
     85 
     86 // override
     87 - (void)handleAccessibleEvent:(uint32_t)eventType;
     88 
     89 @end
     90 
     91 @interface mozMeterAccessible : mozRangeAccessible
     92 
     93 // override
     94 - (NSString*)moxValueDescription;
     95 
     96 @end
     97 
     98 /**
     99 * Base accessible for an incrementable, a settable range
    100 */
    101 @interface mozIncrementableAccessible : mozRangeAccessible
    102 
    103 // override
    104 - (NSString*)moxValueDescription;
    105 
    106 // override
    107 - (void)moxSetValue:(id)value;
    108 
    109 // override
    110 - (void)moxPerformIncrement;
    111 
    112 // override
    113 - (void)moxPerformDecrement;
    114 
    115 - (void)changeValueBySteps:(int)factor;
    116 
    117 @end
    118 
    119 @interface mozDatePickerAccessible : mozAccessible
    120 
    121 // override
    122 - (NSString*)moxTitle;
    123 
    124 @end