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

Side by Side Diff: Source/WebCore/platform/chromium/PopupListBox.h

Issue 13818030: Added primary input devices setting to blink to allow media queries for hover/pointer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review fixes Created 7 years, 8 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/WebCore/page/Settings.in ('k') | Source/WebCore/platform/chromium/PopupListBox.cpp » ('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 * 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
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 includes a touch screen we increase the height of me nu items
85 // to make it easier to unambiguously touch them. 85 // to make it easier to unambiguously touch them.
86 bool deviceSupportsTouch; 86 bool 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
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
OLDNEW
« no previous file with comments | « Source/WebCore/page/Settings.in ('k') | Source/WebCore/platform/chromium/PopupListBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698