tor-browser

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

nsSearchControlFrame.h (1217B)


      1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 #ifndef nsSearchControlFrame_h__
      8 #define nsSearchControlFrame_h__
      9 
     10 #include "nsTextControlFrame.h"
     11 
     12 class nsPresContext;
     13 
     14 namespace mozilla {
     15 class PresShell;
     16 namespace dom {
     17 class Element;
     18 }  // namespace dom
     19 }  // namespace mozilla
     20 
     21 /** This frame type is used for <input type=search>. */
     22 class nsSearchControlFrame final : public nsTextControlFrame {
     23  friend nsIFrame* NS_NewSearchControlFrame(mozilla::PresShell*,
     24                                            ComputedStyle*);
     25  nsSearchControlFrame(ComputedStyle*, nsPresContext*);
     26 
     27 public:
     28  NS_DECL_QUERYFRAME
     29  NS_DECL_FRAMEARENA_HELPERS(nsSearchControlFrame)
     30 
     31  nsresult CreateAnonymousContent(nsTArray<ContentInfo>& aElements) override;
     32 
     33 #ifdef DEBUG_FRAME_DUMP
     34  nsresult GetFrameName(nsAString& aResult) const override {
     35    return MakeFrameName(u"SearchControl"_ns, aResult);
     36  }
     37 #endif
     38 };
     39 
     40 #endif  // nsSearchControlFrame_h__