/external/chromium_org/ui/aura/ |
H A D | window_tree_host.cc | 19 #include "ui/gfx/display.h" 33 gfx::Display display = gfx::Screen::GetScreenFor(window)-> local 35 DCHECK(display.is_valid()); 36 return display.device_scale_factor(); 236 // Get the latest scale from display because it might have been changed. 271 const gfx::Display& display = local 273 cursor_client->SetDisplay(display);
|
H A D | window_tree_host_x11.cc | 70 void SelectXInput2EventsForRootWindow(XDisplay* display, ::Window root_window) { argument 81 XISelectEvents(display, root_window, &evmask, 1); 95 XISelectEvents(display, root_window, &evmask, 1); 335 while (XPending(xev->xany.display)) { 337 XPeekEvent(xev->xany.display, &next_event); 342 XNextEvent(xev->xany.display, &last_event); 385 const gfx::Display display = gfx::Screen::GetScreenFor( local 387 cursor_client->SetDisplay(display); 580 xevent.xany.display = xdisplay_; 704 XFreeEventData(xev->xgeneric.display, [all...] |
/external/chromium_org/ui/base/cursor/ |
H A D | image_cursors.cc | 14 #include "ui/gfx/display.h" 89 bool ImageCursors::SetDisplay(const gfx::Display& display, argument 93 } else if (cursor_loader_->rotation() == display.rotation() && 98 cursor_loader_->set_rotation(display.rotation());
|
/external/chromium_org/ui/base/ |
H A D | layout.cc | 17 #include "ui/gfx/display.h" 126 gfx::Display display = screen->GetDisplayNearestWindow(view); local 127 return display.device_scale_factor();
|
/external/chromium_org/ui/base/resource/ |
H A D | resource_bundle.cc | 603 const gfx::Display display = local 605 const float display_density = display.device_scale_factor(); 610 gfx::Display display = gfx::Screen::GetNativeScreen()->GetPrimaryDisplay(); local 611 if (display.device_scale_factor() > 2.0) { 612 DCHECK_EQ(3.0, display.device_scale_factor()); 614 } else if (display.device_scale_factor() > 1.0) { 615 DCHECK_EQ(2.0, display.device_scale_factor());
|
/external/chromium_org/ui/base/x/ |
H A D | selection_owner.cc | 48 size_t GetMaxRequestSize(XDisplay* display) { argument 49 long extended_max_size = XExtendedMaxRequestSize(display); 51 (extended_max_size ? extended_max_size : XMaxRequestSize(display)) - 100;
|
H A D | x11_util.cc | 172 XDisplay* display = gfx::GetXDisplay(); local 173 it.first->second = XCreateFontCursor(display, cursor_shape); 179 XDisplay* display = gfx::GetXDisplay(); local 182 XFreeCursor(display, it->second); 430 XDisplay* display = xev->xany.display; local 435 while (XPending(display)) { 437 XPeekEvent(display, &next_event); 440 if (!XGetEventData(next_event.xgeneric.display, &next_event.xcookie)) 448 XFreeEventData(display, 580 XDisplay* display = gfx::GetXDisplay(); local 992 SetWindowClassHint(XDisplay* display, XID window, const std::string& res_name, const std::string& res_class) argument 1005 SetWindowRole(XDisplay* display, XID window, const std::string& role) argument 1052 GetX11ErrorString(XDisplay* display, int err) argument 1355 XScopedCursor(::Cursor cursor, XDisplay* display) argument [all...] |
/external/chromium_org/ui/compositor/test/ |
H A D | test_compositor_host_x11.cc | 57 XDisplay* display = gfx::GetXDisplay(); local 62 display, 63 RootWindow(display, DefaultScreen(display)), // parent 70 XMapWindow(display, window_); 74 XNextEvent(display, &event);
|
/external/chromium_org/ui/display/chromeos/ |
H A D | display_configurator.cc | 5 #include "ui/display/chromeos/display_configurator.h" 14 #include "ui/display/display_switches.h" 15 #include "ui/display/types/display_mode.h" 16 #include "ui/display/types/display_snapshot.h" 17 #include "ui/display/types/native_display_delegate.h" 29 // The delay spent before reading the display configuration after coming out of 30 // suspend. While coming out of suspend the display state may be updating. This 31 // is used to wait until the hardware had a chance to update the display state 82 display_states[i].display->type() == DISPLAY_CONNECTION_TYPE_INTERNAL; 105 : display(NUL 120 FindDisplayModeMatchingSize( const DisplaySnapshot& display, const gfx::Size& size) argument [all...] |
H A D | display_configurator.h | 19 #include "ui/display/display_export.h" 20 #include "ui/display/types/display_constants.h" 21 #include "ui/display/types/native_display_observer.h" 34 // This class interacts directly with the system display configurator. 43 DisplaySnapshot* display; // Not owned. member in struct:ui::DisplayConfigurator::DisplayState 45 // User-selected mode for the display. 58 // Called after the display mode has been changed. |display| contains the 65 // Called after a display mode change attempt failed. |failed_new_state| is 71 // Interface for classes that make decisions about which display stat [all...] |
/external/chromium_org/ui/events/gesture_detection/ |
H A D | gesture_config_helper_android.cc | 25 const gfx::Display& display) { 35 const float px_to_dp = 1.f / display.device_scale_factor(); 49 const gfx::Display& display) { 52 const float px_to_dp = 1.f / display.device_scale_factor(); 67 config.display = gfx::Screen::GetNativeScreen()->GetPrimaryDisplay(); 68 config.gesture_detector_config = DefaultGestureDetectorConfig(config.display); 70 DefaultScaleGestureDetectorConfig(config.display); 24 DefaultGestureDetectorConfig( const gfx::Display& display) argument 48 DefaultScaleGestureDetectorConfig( const gfx::Display& display) argument
|
H A D | gesture_provider.h | 16 #include "ui/gfx/display.h" 33 gfx::Display display; member in struct:ui::GestureProvider::Config
|
H A D | snap_scroll_controller.cc | 10 #include "ui/gfx/display.h" 19 float CalculateChannelDistance(const gfx::Display& display) { argument 20 if (display.bounds().IsEmpty()) 24 std::abs(hypot(static_cast<float>(display.bounds().width()), 25 static_cast<float>(display.bounds().height()))); 35 SnapScrollController::SnapScrollController(const gfx::Display& display) argument 36 : channel_distance_(CalculateChannelDistance(display)),
|
/external/chromium_org/ui/events/keycodes/ |
H A D | keyboard_code_conversion_x.cc | 1316 xkeyevent->xkey.display = xievent->display; 1332 XDisplay* display) { 1353 return XKeysymToKeycode(display, XKeysymForWindowsKeyCode(key_code, false)); 1330 XKeyCodeForWindowsKeyCode(ui::KeyboardCode key_code, int flags, XDisplay* display) argument
|
/external/chromium_org/ui/events/platform/x11/ |
H A D | x11_event_source.cc | 25 bool InitializeXInput2(XDisplay* display) { argument 26 if (!display) 32 if (!XQueryExtension(display, "XInputExtension", &xiopcode, &event, &err)) { 44 if (XIQueryVersion(display, &major, &minor) == BadRequest) { 59 bool InitializeXkb(XDisplay* display) { argument 60 if (!display) 66 if (!XkbQueryExtension(display, &opcode, &event, &error, &major, &minor)) { 74 if (!XkbSetDetectableAutoRepeat(display, True, &supported_return)) { 84 X11EventSource::X11EventSource(XDisplay* display) argument 85 : display_(display), [all...] |
H A D | x11_event_source.h | 26 explicit X11EventSource(XDisplay* display); 47 XDisplay* display() { return display_; } function in class:ui::X11EventSource
|
H A D | x11_event_source_glib.cc | 17 XDisplay* display; member in struct:ui::__anon16782::GLibX11Source 23 if (XPending(gxsource->display)) 32 return XPending(gxsource->display); 52 explicit X11EventSourceGlib(XDisplay* display) argument 53 : X11EventSource(display), 55 InitXSource(ConnectionNumber(display)); 66 CHECK(display()) << "Unable to get connection to X server"; 75 glib_x_source->display = display();
|
H A D | x11_event_source_libevent.cc | 19 explicit X11EventSourceLibevent(XDisplay* display) argument 20 : X11EventSource(display), 35 int fd = ConnectionNumber(display());
|
/external/chromium_org/ui/events/test/ |
H A D | events_test_utils_x11.cc | 152 XDisplay* display = gfx::GetXDisplay(); local 159 event_->xkey.display = display; 169 event_->xkey.keycode = XKeyCodeForWindowsKeyCode(key_code, flags, display); 182 XDisplay* display = gfx::GetXDisplay(); local 183 event_->xgeneric.display = display; 184 xievent->display = display; 186 xievent->detail = XKeyCodeForWindowsKeyCode(key_code, flags, display); [all...] |
/external/chromium_org/ui/events/x/ |
H A D | device_data_manager_x11.cc | 19 #include "ui/gfx/display.h" 197 void DeviceDataManagerX11::UpdateDeviceList(Display* display) { argument 212 ui::DeviceListCacheX::GetInstance()->GetXDeviceList(display); 213 Atom xi_touchpad = XInternAtom(display, XI_TOUCHPAD, false); 223 ui::DeviceListCacheX::GetInstance()->GetXI2DeviceList(display);
|
H A D | device_list_cache_x.cc | 47 void DeviceListCacheX::UpdateDeviceList(Display* display) { argument 48 XDeviceList& new_x_dev_list = x_dev_list_map_[display]; 51 new_x_dev_list.devices = XListInputDevices(display, &new_x_dev_list.count); 53 XIDeviceList& new_xi_dev_list = xi_dev_list_map_[display]; 57 XIQueryDevice(display, XIAllDevices, &new_xi_dev_list.count) : NULL; 60 const XDeviceList& DeviceListCacheX::GetXDeviceList(Display* display) { argument 61 XDeviceList& x_dev_list = x_dev_list_map_[display]; 64 x_dev_list.devices = XListInputDevices(display, &x_dev_list.count); 68 const XIDeviceList& DeviceListCacheX::GetXI2DeviceList(Display* display) { argument 69 XIDeviceList& xi_dev_list = xi_dev_list_map_[display]; [all...] |
H A D | events_x.cc | 23 #include "ui/gfx/display.h" 208 XkbKeycodeToKeysym(xievent->display, xievent->detail, 0, 0)) 360 XDisplay* display = gfx::GetXDisplay(); local 361 DeviceListCacheX::GetInstance()->UpdateDeviceList(display); 362 TouchFactory::GetInstance()->UpdateDeviceList(display); 363 DeviceDataManagerX11::GetInstance()->UpdateDeviceList(display);
|
H A D | events_x_unittest.cc | 51 void InitKeyEvent(Display* display, argument 61 key_event->display = display; 69 bool HasFunctionKeyFlagSetIfSupported(Display* display, int x_keysym) { argument 71 int x_keycode = XKeysymToKeycode(display, x_keysym); 74 InitKeyEvent(display, &event, true, x_keycode, 0); 357 Display* display = gfx::GetXDisplay(); local 453 int x_keycode = XKeysymToKeycode(display, keys[k].x_keysym); 456 InitKeyEvent(display, &event, true, x_keycode, 0); 467 Display* display local 604 Display* display = gfx::GetXDisplay(); local [all...] |
H A D | hotplug_event_handler_x11.cc | 124 Display* display = gfx::GetXDisplay(); local 125 Atom valuator_x = XInternAtom(display, "Abs MT Position X", False); 126 Atom valuator_y = XInternAtom(display, "Abs MT Position Y", False); 173 IsTouchscreenInternal(display, x11_devices[i].deviceid);
|
H A D | touch_factory_x11.cc | 40 XDisplay* display = gfx::GetXDisplay(); 41 UpdateDeviceList(display); 82 void TouchFactory::UpdateDeviceList(Display* display) { argument 98 DeviceListCacheX::GetInstance()->GetXDeviceList(display); 99 Atom xi_touchscreen = XInternAtom(display, XI_TOUCHSCREEN, false); 126 DeviceListCacheX::GetInstance()->GetXI2DeviceList(display); 161 CacheTouchscreenIds(display, devinfo->deviceid); 206 XDisplay* display = gfx::GetXDisplay(); local 230 XISelectEvents(display, window, &evmask, 1); 231 XFlush(display); [all...] |