Lines Matching refs:window

101 // Default height of dev tools pane when docked to the browser window.  This
110 // on each side regardless of the system window border size.
112 // While resize areas on Windows are normally the same size as the window
113 // borders, our top area is shrunk by 1 px to make it easier to move the window
118 // In the window corners, the resize areas don't actually expand bigger, but
126 // window background to line up with the tab background regardless of whether
132 // The timeout in milliseconds before we'll get the true window position with
137 // gripper in the bottom right corner of the window. We dynamically
155 // this to get the initial bounds. After window creation, we pick up the
157 gfx::Rect GetInitialWindowBounds(GtkWindow* window) {
159 gtk_window_get_position(window, &x, &y);
160 gtk_window_get_size(window, &width, &height);
246 // where setting the window size to the monitor size causes the WM to set the
248 void SetWindowSize(GtkWindow* window, const gfx::Size& size) {
249 GdkScreen* screen = gtk_window_get_screen(window);
251 // Make sure the window doesn't match any monitor size. We compare against
252 // all monitors because we don't know which monitor the window is going to
258 gtk_window_resize(window, size.width(), size.height() - 1);
262 gtk_window_resize(window, size.width(), size.height());
320 // Add this window to its own unique window group to allow for
321 // window-to-parent modality.
352 // For popups, we initialize widgets then set the window geometry, because
353 // popups need the widgets inited before they can set the window size
377 cairo_t* cr = gdk_cairo_create(GDK_DRAWABLE(widget->window));
604 // The Browser associated with this browser window must become the active
618 // If we have sized the window by setting a size request for the render
662 // We're going to destroy the window, make sure the tab strip isn't running
683 // Cancel any pending callback from the window configure debounce timer.
689 GtkWidget* window = GTK_WIDGET(window_);
694 gtk_widget_destroy(window);
702 gdk_window_lower(GTK_WIDGET(window_)->window);
710 // May not be respected by all window managers.
774 // ... or in the window icon area for popups and app windows.
804 // gtk_window_(un)fullscreen asks the window manager to toggle the EWMH
805 // for fullscreen windows. Not all window managers support this.
959 gdk_window_invalidate_rect(GTK_WIDGET(window_)->window,
1003 // Then check if it's a predefined accelerator bound to the window.
1193 // Do nothing if we're in the process of closing the browser window.
1197 bool is_active = (GTK_WIDGET(window_)->window == active_window);
1202 // the user's attention to the window owning the dialog.
1212 gdk_window_invalidate_rect(GTK_WIDGET(window_)->window,
1214 // For some reason, the above two calls cause the window shape to be
1291 // Store split offset when hiding devtools window only.
1307 // When the window moves, we'll get multiple configure-event signals. We can
1308 // also get events when the bounds haven't changed, but the window's stacking
1323 // to be updated conditionally when the window is non-maximized and non-
1325 // window-manager specific. We update |restored_bounds_| in the debounced
1326 // handler below, after the window state has been updated.
1330 // coordinates though (they're relative to the drawable window area, rather
1331 // than any window manager decorations, if enabled), so we need to call
1392 // close the window (e.g., clicking on the X in the window manager title bar).
1397 // Return true to prevent the gtk window from being destroyed. Close will
1409 // Additionally, now that we know the window is gone, we need to make sure to
1410 // set window_ to NULL, otherwise we will try to close the window again when
1422 // It can happen that you end up with a window whose restore size is the same
1425 // this and resize the window to work around the issue.
1437 // the window below.
1442 // Tab strip isn't empty. Hide the window (so it appears to have closed
1479 gdk_window_set_cursor(GTK_WIDGET(window_)->window, NULL);
1484 gfx::NativeWindow window) {
1485 if (window) {
1487 g_object_get_qdata(G_OBJECT(window), GetBrowserWindowQuarkKey()));
1503 // Avoid checking the window manager if we're not connected to an X server (as
1532 // confused and maximizes the window, but doesn't set the
1539 // on the window and we intentionally *don't* do that for normal
1540 // windows. Most programs do not restore their window position on
1541 // Linux, instead letting the window manager choose a position.
1565 g_signal_connect(window_, "window-state-event",
1592 // We hold an always hidden GtkMenuBar inside our browser window simply to
1601 // The window container draws the custom browser frame.
1617 // Insert the tabstrip into the window.
1710 // We have to realize the window before we try to apply a window shape mask.
1712 state_ = gdk_window_get_state(GTK_WIDGET(window_)->window);
1717 // We have to call this after the first window is created, but after that only
1777 // window except for a few pixels in each corner.
1791 gdk_window_shape_combine_region(GTK_WIDGET(window_)->window, mask, 0, 0);
1799 // seem to work on KWin, so manually set the shape to the whole window.
1802 gdk_window_shape_combine_region(GTK_WIDGET(window_)->window, mask, 0, 0);
1805 gdk_window_shape_combine_region(GTK_WIDGET(window_)->window, NULL, 0, 0);
2018 if (!UseCustomFrame() || event->window != widget->window) {
2022 gdk_window_set_cursor(GTK_WIDGET(window_)->window, NULL);
2045 gdk_window_set_cursor(GTK_WIDGET(window_)->window, frame_cursor_);
2066 // Make the button press coordinate relative to the browser window.
2068 gdk_window_get_origin(GTK_WIDGET(window_)->window, &win_x, &win_y);
2094 // Raise the window after a click on either the titlebar or the border to
2095 // match the behavior of most window managers, unless that behavior has
2098 gdk_window_raise(GTK_WIDGET(window_)->window);
2124 // Ignore drag requests if the window is the size of the screen.
2156 gdk_window_lower(GTK_WIDGET(window_)->window);
2171 // Map the X Window ID of the window to our window.
2202 gdk_window_lower(toolbar_border_->window);
2297 // We don't use the custom frame for app mode windows or app window popups.
2307 GTK_WIDGET(window_)->window);
2341 // system decorations for the few (?) tiling window managers where the custom