Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(513)

Side by Side Diff: Source/core/rendering/RenderThemeChromiumDefault.h

Issue 368023003: Popup open and hide using Alt+KeyDown (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: "Build fix" Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/rendering/RenderTheme.h ('k') | Source/core/rendering/RenderThemeChromiumMac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of the WebKit project. 2 * This file is part of the WebKit project.
3 * 3 *
4 * Copyright (C) 2006 Apple Computer, Inc. 4 * Copyright (C) 2006 Apple Computer, Inc.
5 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com 5 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com
6 * Copyright (C) 2007 Holger Hans Peter Freyther 6 * Copyright (C) 2007 Holger Hans Peter Freyther
7 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 7 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
8 * Copyright (C) 2008, 2009 Google, Inc. 8 * Copyright (C) 2008, 2009 Google, Inc.
9 * All rights reserved. 9 * All rights reserved.
10 * Copyright (C) 2009 Kenneth Rohde Christiansen 10 * Copyright (C) 2009 Kenneth Rohde Christiansen
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 virtual bool paintButton(RenderObject*, const PaintInfo&, const IntRect&) OV ERRIDE; 72 virtual bool paintButton(RenderObject*, const PaintInfo&, const IntRect&) OV ERRIDE;
73 virtual bool paintTextField(RenderObject*, const PaintInfo&, const IntRect&) OVERRIDE; 73 virtual bool paintTextField(RenderObject*, const PaintInfo&, const IntRect&) OVERRIDE;
74 virtual bool paintMenuList(RenderObject*, const PaintInfo&, const IntRect&) OVERRIDE; 74 virtual bool paintMenuList(RenderObject*, const PaintInfo&, const IntRect&) OVERRIDE;
75 virtual bool paintMenuListButton(RenderObject*, const PaintInfo&, const IntR ect&) OVERRIDE; 75 virtual bool paintMenuListButton(RenderObject*, const PaintInfo&, const IntR ect&) OVERRIDE;
76 virtual bool paintSliderTrack(RenderObject*, const PaintInfo&, const IntRect &) OVERRIDE; 76 virtual bool paintSliderTrack(RenderObject*, const PaintInfo&, const IntRect &) OVERRIDE;
77 virtual bool paintSliderThumb(RenderObject*, const PaintInfo&, const IntRect &) OVERRIDE; 77 virtual bool paintSliderThumb(RenderObject*, const PaintInfo&, const IntRect &) OVERRIDE;
78 78
79 virtual void adjustInnerSpinButtonStyle(RenderStyle*, Element*) const OVERRI DE; 79 virtual void adjustInnerSpinButtonStyle(RenderStyle*, Element*) const OVERRI DE;
80 virtual bool paintInnerSpinButton(RenderObject*, const PaintInfo&, const Int Rect&) OVERRIDE; 80 virtual bool paintInnerSpinButton(RenderObject*, const PaintInfo&, const Int Rect&) OVERRIDE;
81 81
82 virtual bool popsMenuBySpaceOrReturn() const OVERRIDE FINAL { return true; } 82 virtual bool popsMenuBySpaceKey() const OVERRIDE FINAL { return true; }
83 virtual bool popsMenuByReturnKey() const OVERRIDE FINAL { return true; }
84 virtual bool popsMenuByAltDownUpOrF4Key() const OVERRIDE { return true; }
83 85
84 virtual bool paintProgressBar(RenderObject*, const PaintInfo&, const IntRect &) OVERRIDE; 86 virtual bool paintProgressBar(RenderObject*, const PaintInfo&, const IntRect &) OVERRIDE;
85 87
86 virtual bool shouldOpenPickerWithF4Key() const OVERRIDE; 88 virtual bool shouldOpenPickerWithF4Key() const OVERRIDE;
87 89
88 static void setSelectionColors(unsigned activeBackgroundColor, unsigned acti veForegroundColor, unsigned inactiveBackgroundColor, unsigned inactiveForeground Color); 90 static void setSelectionColors(unsigned activeBackgroundColor, unsigned acti veForegroundColor, unsigned inactiveBackgroundColor, unsigned inactiveForeground Color);
89 91
90 protected: 92 protected:
91 RenderThemeChromiumDefault(); 93 RenderThemeChromiumDefault();
92 virtual ~RenderThemeChromiumDefault(); 94 virtual ~RenderThemeChromiumDefault();
93 virtual bool shouldUseFallbackTheme(RenderStyle*) const OVERRIDE; 95 virtual bool shouldUseFallbackTheme(RenderStyle*) const OVERRIDE;
94 96
95 private: 97 private:
96 static double m_caretBlinkInterval; 98 static double m_caretBlinkInterval;
97 99
98 static unsigned m_activeSelectionBackgroundColor; 100 static unsigned m_activeSelectionBackgroundColor;
99 static unsigned m_activeSelectionForegroundColor; 101 static unsigned m_activeSelectionForegroundColor;
100 static unsigned m_inactiveSelectionBackgroundColor; 102 static unsigned m_inactiveSelectionBackgroundColor;
101 static unsigned m_inactiveSelectionForegroundColor; 103 static unsigned m_inactiveSelectionForegroundColor;
102 }; 104 };
103 105
104 } // namespace WebCore 106 } // namespace WebCore
105 107
106 #endif // RenderThemeChromiumDefault_h 108 #endif // RenderThemeChromiumDefault_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderTheme.h ('k') | Source/core/rendering/RenderThemeChromiumMac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698