OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2011, Google Inc. All rights reserved. | 2 * Copyright (c) 2011, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
74 | 74 |
75 // Whether we should move the selection to the first/last item when | 75 // Whether we should move the selection to the first/last item when |
76 // the user presses down/up arrow keys and the last/first item is | 76 // the user presses down/up arrow keys and the last/first item is |
77 // selected. | 77 // selected. |
78 bool loopSelectionNavigation; | 78 bool loopSelectionNavigation; |
79 | 79 |
80 // Whether we should restrict the width of the PopupListBox or not. | 80 // Whether we should restrict the width of the PopupListBox or not. |
81 // Autocomplete popups are restricted, combo-boxes (select tags) aren't. | 81 // Autocomplete popups are restricted, combo-boxes (select tags) aren't. |
82 bool restrictWidthOfListBox; | 82 bool restrictWidthOfListBox; |
83 | 83 |
84 // If the device is a touch screen we increase the height of menu items | 84 // If the primary input is a touch screen we increase the height of menu ite ms |
85 // to make it easier to unambiguously touch them. | 85 // to make it easier to unambiguously touch them. |
86 bool deviceSupportsTouch; | 86 bool primaryInputIsTouch; |
Rick Byers
2013/04/10 14:57:51
this again implies that there's only a single prim
bokan
2013/04/10 16:03:29
Done, changed to primaryInputIncludesTouch
| |
87 }; | 87 }; |
88 | 88 |
89 class PopupContent { | 89 class PopupContent { |
90 public: | 90 public: |
91 virtual void layout() = 0; | 91 virtual void layout() = 0; |
92 virtual void setMaxHeight(int) = 0; | 92 virtual void setMaxHeight(int) = 0; |
93 virtual void setMaxWidthAndLayout(int) = 0; | 93 virtual void setMaxWidthAndLayout(int) = 0; |
94 virtual int popupContentHeight() const = 0; | 94 virtual int popupContentHeight() const = 0; |
95 virtual ~PopupContent() { }; | 95 virtual ~PopupContent() { }; |
96 }; | 96 }; |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
307 int m_maxWindowWidth; | 307 int m_maxWindowWidth; |
308 | 308 |
309 // To forward last mouse release event. | 309 // To forward last mouse release event. |
310 RefPtr<Node> m_focusedNode; | 310 RefPtr<Node> m_focusedNode; |
311 | 311 |
312 }; | 312 }; |
313 | 313 |
314 } // namespace WebCore | 314 } // namespace WebCore |
315 | 315 |
316 #endif | 316 #endif |
OLD | NEW |