mirror of
				https://bitbucket.org/chromiumembedded/cef
				synced 2025-06-05 21:39:12 +02:00 
			
		
		
		
	Update to Chromium version 125.0.6422.0 (#1287751)
This commit is contained in:
		| @@ -23,7 +23,7 @@ index cef40af382b1e..a2cf4691edc37 100644 | ||||
|      case ui::SHOW_STATE_END: | ||||
|        return ui::SHOW_STATE_NORMAL; | ||||
| diff --git components/sessions/core/session_service_commands.cc components/sessions/core/session_service_commands.cc | ||||
| index 6d7ab01569f49..27db605bd571a 100644 | ||||
| index da0cb1677c9be..707831bdeec2e 100644 | ||||
| --- components/sessions/core/session_service_commands.cc | ||||
| +++ components/sessions/core/session_service_commands.cc | ||||
| @@ -165,9 +165,10 @@ enum PersistedWindowShowState { | ||||
| @@ -49,7 +49,7 @@ index 6d7ab01569f49..27db605bd571a 100644 | ||||
|      case ui::SHOW_STATE_MAXIMIZED: | ||||
|        return PERSISTED_SHOW_STATE_MAXIMIZED; | ||||
| diff --git components/sessions/core/tab_restore_service_impl.cc components/sessions/core/tab_restore_service_impl.cc | ||||
| index e9ad2d5751f2d..e51381e8f2dbf 100644 | ||||
| index 1a49cf67e0b17..edf5896d3594e 100644 | ||||
| --- components/sessions/core/tab_restore_service_impl.cc | ||||
| +++ components/sessions/core/tab_restore_service_impl.cc | ||||
| @@ -192,6 +192,7 @@ int SerializeWindowShowState(ui::WindowShowState show_state) { | ||||
| @@ -61,10 +61,10 @@ index e9ad2d5751f2d..e51381e8f2dbf 100644 | ||||
|      case ui::SHOW_STATE_MAXIMIZED: | ||||
|        return kSerializedShowStateMaximized; | ||||
| diff --git content/browser/renderer_host/render_widget_host_view_base.cc content/browser/renderer_host/render_widget_host_view_base.cc | ||||
| index 6b6902c0cb0ee..d724e1dfe7d49 100644 | ||||
| index b1fd8fe22daa6..290912f76fb02 100644 | ||||
| --- content/browser/renderer_host/render_widget_host_view_base.cc | ||||
| +++ content/browser/renderer_host/render_widget_host_view_base.cc | ||||
| @@ -660,6 +660,14 @@ float RenderWidgetHostViewBase::GetScaleOverrideForCapture() const { | ||||
| @@ -669,6 +669,14 @@ float RenderWidgetHostViewBase::GetScaleOverrideForCapture() const { | ||||
|    return scale_override_for_capture_; | ||||
|  } | ||||
|   | ||||
| @@ -80,27 +80,28 @@ index 6b6902c0cb0ee..d724e1dfe7d49 100644 | ||||
|    if (!GetMouseWheelPhaseHandler()) | ||||
|      return; | ||||
| diff --git content/browser/renderer_host/render_widget_host_view_base.h content/browser/renderer_host/render_widget_host_view_base.h | ||||
| index 116046b24a3e0..6b6ee45499639 100644 | ||||
| index 307dd3befb375..bf6bdd7ed4cbe 100644 | ||||
| --- content/browser/renderer_host/render_widget_host_view_base.h | ||||
| +++ content/browser/renderer_host/render_widget_host_view_base.h | ||||
| @@ -72,6 +72,7 @@ class DevicePosturePlatformProvider; | ||||
| @@ -73,6 +73,7 @@ class DevicePosturePlatformProvider; | ||||
|  class MouseWheelPhaseHandler; | ||||
|  class RenderWidgetHostImpl; | ||||
|  class RenderWidgetHostViewBaseObserver; | ||||
| +class RenderWidgetHostViewGuest; | ||||
|  class ScopedViewTransitionResources; | ||||
|  class SyntheticGestureTarget; | ||||
|  class TextInputManager; | ||||
| @@ -153,6 +154,8 @@ class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView, | ||||
|                          const gfx::Size& max_size) override; | ||||
|    void DisableAutoResize(const gfx::Size& new_size) override; | ||||
|  class TouchSelectionControllerClientManager; | ||||
| @@ -192,6 +193,9 @@ class CONTENT_EXPORT RenderWidgetHostViewBase | ||||
|    float GetDeviceScaleFactor() const final; | ||||
|    bool IsPointerLocked() override; | ||||
|   | ||||
| +  void SetHasExternalParent(bool val) override; | ||||
| +  bool HasExternalParent() const override; | ||||
|    TouchSelectionControllerClientManager* | ||||
|    GetTouchSelectionControllerClientManager() override; | ||||
|    ui::mojom::VirtualKeyboardMode GetVirtualKeyboardMode() override; | ||||
| @@ -192,6 +195,10 @@ class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView, | ||||
| + | ||||
|    // Identical to `CopyFromSurface()`, except that this method issues the | ||||
|    // `viz::CopyOutputRequest` against the exact `viz::Surface` currently | ||||
|    // embedded by this View, while `CopyFromSurface()` may return a copy of any | ||||
| @@ -253,6 +257,10 @@ class CONTENT_EXPORT RenderWidgetHostViewBase | ||||
|    // Called when screen information or native widget bounds change. | ||||
|    virtual void UpdateScreenInfo(); | ||||
|   | ||||
| @@ -111,7 +112,7 @@ index 116046b24a3e0..6b6ee45499639 100644 | ||||
|    // Called by the TextInputManager to notify the view about being removed from | ||||
|    // the list of registered views, i.e., TextInputManager is no longer tracking | ||||
|    // TextInputState from this view. The RWHV should reset |text_input_manager_| | ||||
| @@ -453,6 +460,12 @@ class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView, | ||||
| @@ -374,6 +382,12 @@ class CONTENT_EXPORT RenderWidgetHostViewBase | ||||
|                             const gfx::Rect& bounds, | ||||
|                             const gfx::Rect& anchor_rect) = 0; | ||||
|   | ||||
| @@ -121,10 +122,10 @@ index 116046b24a3e0..6b6ee45499639 100644 | ||||
| +  virtual void InitAsGuest(RenderWidgetHostView* parent_host_view, | ||||
| +                           RenderWidgetHostViewGuest* guest_view) {} | ||||
| + | ||||
|    // Sets the cursor for this view to the one specified. | ||||
|    virtual void UpdateCursor(const ui::Cursor& cursor) = 0; | ||||
|    // Indicates whether the page has finished loading. | ||||
|    virtual void SetIsLoading(bool is_loading) = 0; | ||||
|   | ||||
| @@ -746,6 +759,10 @@ class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView, | ||||
| @@ -638,6 +652,10 @@ class CONTENT_EXPORT RenderWidgetHostViewBase | ||||
|    // to all displays. | ||||
|    gfx::Size system_cursor_size_; | ||||
|   | ||||
| @@ -135,7 +136,7 @@ index 116046b24a3e0..6b6ee45499639 100644 | ||||
|   private: | ||||
|    FRIEND_TEST_ALL_PREFIXES( | ||||
|        BrowserSideFlingBrowserTest, | ||||
| @@ -767,10 +784,6 @@ class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView, | ||||
| @@ -659,10 +677,6 @@ class CONTENT_EXPORT RenderWidgetHostViewBase | ||||
|   | ||||
|    void SynchronizeVisualProperties(); | ||||
|   | ||||
| @@ -195,10 +196,10 @@ index 82bf8b2dba80d..7ac79b46da2b4 100644 | ||||
|    if (host_ && set_focus_on_mouse_down_or_key_event_) { | ||||
|      set_focus_on_mouse_down_or_key_event_ = false; | ||||
| diff --git content/public/browser/render_widget_host_view.h content/public/browser/render_widget_host_view.h | ||||
| index 8effe5b2244a3..c36a5d3a6f7b3 100644 | ||||
| index b4ff7c11d8e3c..b21417f89e6e1 100644 | ||||
| --- content/public/browser/render_widget_host_view.h | ||||
| +++ content/public/browser/render_widget_host_view.h | ||||
| @@ -259,6 +259,14 @@ class CONTENT_EXPORT RenderWidgetHostView { | ||||
| @@ -254,6 +254,14 @@ class CONTENT_EXPORT RenderWidgetHostView { | ||||
|    // This must always return the same device scale factor as GetScreenInfo. | ||||
|    virtual float GetDeviceScaleFactor() const = 0; | ||||
|   | ||||
| @@ -258,10 +259,10 @@ index 6076597470af9..871147e3e3a84 100644 | ||||
|   | ||||
|  // Specifies which edges of the window are tiled. | ||||
| diff --git ui/ozone/platform/x11/x11_window.cc ui/ozone/platform/x11/x11_window.cc | ||||
| index a5656cefbfc57..aeb062df96e39 100644 | ||||
| index 55c1e9f0ccc1b..8b5fbb29fcd68 100644 | ||||
| --- ui/ozone/platform/x11/x11_window.cc | ||||
| +++ ui/ozone/platform/x11/x11_window.cc | ||||
| @@ -1863,7 +1863,8 @@ void X11Window::CreateXWindow(const PlatformWindowInitProperties& properties) { | ||||
| @@ -1864,7 +1864,8 @@ void X11Window::CreateXWindow(const PlatformWindowInitProperties& properties) { | ||||
|    req.border_pixel = 0; | ||||
|   | ||||
|    bounds_in_pixels_ = SanitizeBounds(bounds); | ||||
| @@ -349,10 +350,10 @@ index 3151a2c872f4e..e14caeb1e6645 100644 | ||||
|    base::WeakPtrFactory<DesktopWindowTreeHostLinux> weak_factory_{this}; | ||||
|  }; | ||||
| diff --git ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc | ||||
| index c5379f421f5be..f49896ef092cf 100644 | ||||
| index b305f5c2238c2..e2bd0c430cea0 100644 | ||||
| --- ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc | ||||
| +++ ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc | ||||
| @@ -293,8 +293,8 @@ void DesktopWindowTreeHostPlatform::Init(const Widget::InitParams& params) { | ||||
| @@ -285,8 +285,8 @@ void DesktopWindowTreeHostPlatform::Init(const Widget::InitParams& params) { | ||||
|    if (properties.parent_widget) { | ||||
|      window_parent_ = DesktopWindowTreeHostPlatform::GetHostForWidget( | ||||
|          properties.parent_widget); | ||||
| @@ -364,7 +365,7 @@ index c5379f421f5be..f49896ef092cf 100644 | ||||
|   | ||||
|    // Calculate initial bounds. | ||||
| diff --git ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc | ||||
| index f63948de2c5bf..c445451bf3d98 100644 | ||||
| index 99e20655e847e..6c3b3028e67fd 100644 | ||||
| --- ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc | ||||
| +++ ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc | ||||
| @@ -20,6 +20,7 @@ | ||||
| @@ -375,7 +376,7 @@ index f63948de2c5bf..c445451bf3d98 100644 | ||||
|  #include "ui/aura/window_event_dispatcher.h" | ||||
|  #include "ui/base/class_property.h" | ||||
|  #include "ui/base/cursor/cursor.h" | ||||
| @@ -178,22 +179,42 @@ void DesktopWindowTreeHostWin::Init(const Widget::InitParams& params) { | ||||
| @@ -183,22 +184,42 @@ void DesktopWindowTreeHostWin::Init(const Widget::InitParams& params) { | ||||
|                          native_widget_delegate_.get()); | ||||
|   | ||||
|    HWND parent_hwnd = nullptr; | ||||
| @@ -422,7 +423,7 @@ index f63948de2c5bf..c445451bf3d98 100644 | ||||
|    // Stack immediately above its parent so that it does not cover other | ||||
|    // root-level windows, with the exception of menus, to allow them to be | ||||
|    // displayed on top of other windows. | ||||
| @@ -1016,10 +1037,23 @@ void DesktopWindowTreeHostWin::HandleWindowMinimizedOrRestored(bool restored) { | ||||
| @@ -1020,10 +1041,23 @@ void DesktopWindowTreeHostWin::HandleWindowMinimizedOrRestored(bool restored) { | ||||
|    if (!native_widget_delegate_->IsNativeWidgetInitialized()) | ||||
|      return; | ||||
|   | ||||
| @@ -448,7 +449,7 @@ index f63948de2c5bf..c445451bf3d98 100644 | ||||
|  } | ||||
|   | ||||
|  void DesktopWindowTreeHostWin::HandleClientSizeChanged( | ||||
| @@ -1036,11 +1070,15 @@ void DesktopWindowTreeHostWin::HandleFrameChanged() { | ||||
| @@ -1040,11 +1074,15 @@ void DesktopWindowTreeHostWin::HandleFrameChanged() { | ||||
|  } | ||||
|   | ||||
|  void DesktopWindowTreeHostWin::HandleNativeFocus(HWND last_focused_window) { | ||||
| @@ -466,7 +467,7 @@ index f63948de2c5bf..c445451bf3d98 100644 | ||||
|  } | ||||
|   | ||||
|  bool DesktopWindowTreeHostWin::HandleMouseEvent(ui::MouseEvent* event) { | ||||
| @@ -1048,6 +1086,12 @@ bool DesktopWindowTreeHostWin::HandleMouseEvent(ui::MouseEvent* event) { | ||||
| @@ -1052,6 +1090,12 @@ bool DesktopWindowTreeHostWin::HandleMouseEvent(ui::MouseEvent* event) { | ||||
|    if (ui::PlatformEventSource::ShouldIgnoreNativePlatformEvents()) | ||||
|      return true; | ||||
|   | ||||
| @@ -479,7 +480,7 @@ index f63948de2c5bf..c445451bf3d98 100644 | ||||
|    SendEventToSink(event); | ||||
|    return event->handled(); | ||||
|  } | ||||
| @@ -1226,8 +1270,16 @@ void DesktopWindowTreeHostWin::SetBoundsInDIP(const gfx::Rect& bounds) { | ||||
| @@ -1230,8 +1274,16 @@ void DesktopWindowTreeHostWin::SetBoundsInDIP(const gfx::Rect& bounds) { | ||||
|    // positions in variable-DPI situations. See https://crbug.com/1224715 for | ||||
|    // details. | ||||
|    aura::Window* root = nullptr; | ||||
| @@ -517,7 +518,7 @@ index 8d5b01098915d..ae5b6a2193031 100644 | ||||
|    // the implementation of ::ShowCursor() is based on a counter, so making this | ||||
|    // member static ensures that ::ShowCursor() is always called exactly once | ||||
| diff --git ui/views/widget/native_widget_mac.mm ui/views/widget/native_widget_mac.mm | ||||
| index cbe655d5879d6..a72c3450d1fa7 100644 | ||||
| index 6383110804d44..e5bc85f63fab9 100644 | ||||
| --- ui/views/widget/native_widget_mac.mm | ||||
| +++ ui/views/widget/native_widget_mac.mm | ||||
| @@ -640,6 +640,7 @@ void NativeWidgetMac::Show(ui::WindowShowState show_state, | ||||
| @@ -529,10 +530,10 @@ index cbe655d5879d6..a72c3450d1fa7 100644 | ||||
|        break; | ||||
|      case ui::SHOW_STATE_END: | ||||
| diff --git ui/views/widget/widget.cc ui/views/widget/widget.cc | ||||
| index 53c18070fb9e2..4e101a792ec6b 100644 | ||||
| index d958581dc14d0..c06a5b18b4835 100644 | ||||
| --- ui/views/widget/widget.cc | ||||
| +++ ui/views/widget/widget.cc | ||||
| @@ -399,7 +399,8 @@ void Widget::Init(InitParams params) { | ||||
| @@ -405,7 +405,8 @@ void Widget::Init(InitParams params) { | ||||
|    } | ||||
|   | ||||
|    params.child |= (params.type == InitParams::TYPE_CONTROL); | ||||
| @@ -540,9 +541,9 @@ index 53c18070fb9e2..4e101a792ec6b 100644 | ||||
| +  is_top_level_ = !params.child || | ||||
| +                  params.parent_widget != gfx::kNullAcceleratedWidget; | ||||
|    is_headless_ = params.ShouldInitAsHeadless(); | ||||
|    is_autosized_ = params.autosize; | ||||
|   | ||||
|    if (params.opacity == views::Widget::InitParams::WindowOpacity::kInferred && | ||||
| @@ -494,9 +495,14 @@ void Widget::Init(InitParams params) { | ||||
| @@ -497,9 +498,14 @@ void Widget::Init(InitParams params) { | ||||
|   | ||||
|      if (show_state == ui::SHOW_STATE_MAXIMIZED) { | ||||
|        Maximize(); | ||||
| @@ -557,7 +558,7 @@ index 53c18070fb9e2..4e101a792ec6b 100644 | ||||
|      } | ||||
|   | ||||
|  #if BUILDFLAG(IS_CHROMEOS_ASH) | ||||
| @@ -510,7 +516,12 @@ void Widget::Init(InitParams params) { | ||||
| @@ -513,7 +519,12 @@ void Widget::Init(InitParams params) { | ||||
|    } else if (delegate) { | ||||
|      SetContentsView(delegate->TransferOwnershipOfContentsView()); | ||||
|      if (should_set_initial_bounds) { | ||||
| @@ -571,7 +572,7 @@ index 53c18070fb9e2..4e101a792ec6b 100644 | ||||
|      } | ||||
|    } | ||||
|   | ||||
| @@ -1655,10 +1666,16 @@ void Widget::OnNativeWidgetParentChanged(gfx::NativeView parent) { | ||||
| @@ -1692,10 +1703,16 @@ void Widget::OnNativeWidgetParentChanged(gfx::NativeView parent) { | ||||
|  } | ||||
|   | ||||
|  gfx::Size Widget::GetMinimumSize() const { | ||||
| @@ -588,7 +589,7 @@ index 53c18070fb9e2..4e101a792ec6b 100644 | ||||
|    return non_client_view_ ? non_client_view_->GetMaximumSize() : gfx::Size(); | ||||
|  } | ||||
|   | ||||
| @@ -1909,7 +1926,8 @@ bool Widget::SetInitialFocus(ui::WindowShowState show_state) { | ||||
| @@ -1946,7 +1963,8 @@ bool Widget::SetInitialFocus(ui::WindowShowState show_state) { | ||||
|      return false; | ||||
|    View* v = widget_delegate_->GetInitiallyFocusedView(); | ||||
|    if (!focus_on_creation_ || show_state == ui::SHOW_STATE_INACTIVE || | ||||
| @@ -599,10 +600,10 @@ index 53c18070fb9e2..4e101a792ec6b 100644 | ||||
|      // focus when the window is restored. | ||||
|      if (v) | ||||
| diff --git ui/views/widget/widget.h ui/views/widget/widget.h | ||||
| index 5042a382cacfc..2582b75986ca5 100644 | ||||
| index 0d373af86c18a..33bdd6caa9f35 100644 | ||||
| --- ui/views/widget/widget.h | ||||
| +++ ui/views/widget/widget.h | ||||
| @@ -363,6 +363,8 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate, | ||||
| @@ -358,6 +358,8 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate, | ||||
|      // the concept with bubble anchoring a la BubbleDialogDelegateView. | ||||
|      gfx::NativeView parent = gfx::NativeView(); | ||||
|   | ||||
| @@ -611,7 +612,7 @@ index 5042a382cacfc..2582b75986ca5 100644 | ||||
|      // Specifies the initial bounds of the Widget. Default is empty, which means | ||||
|      // the NativeWidget may specify a default size. If the parent is specified, | ||||
|      // |bounds| is in the parent's coordinate system. If the parent is not | ||||
| @@ -762,7 +764,7 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate, | ||||
| @@ -764,7 +766,7 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate, | ||||
|    void ShowInactive(); | ||||
|   | ||||
|    // Activates the widget, assuming it already exists and is visible. | ||||
| @@ -621,10 +622,10 @@ index 5042a382cacfc..2582b75986ca5 100644 | ||||
|    // Deactivates the widget, making the next window in the Z order the active | ||||
|    // window. | ||||
| diff --git ui/views/widget/widget_delegate.h ui/views/widget/widget_delegate.h | ||||
| index dc81dccf6e446..c18ec44755a6a 100644 | ||||
| index 6a8bb8ad5969a..32b7e90152be6 100644 | ||||
| --- ui/views/widget/widget_delegate.h | ||||
| +++ ui/views/widget/widget_delegate.h | ||||
| @@ -375,6 +375,10 @@ class VIEWS_EXPORT WidgetDelegate | ||||
| @@ -380,6 +380,10 @@ class VIEWS_EXPORT WidgetDelegate | ||||
|    // Returns true if the title text should be centered. | ||||
|    bool ShouldCenterWindowTitleText() const; | ||||
|   | ||||
| @@ -650,10 +651,10 @@ index 3b9b00b7d79ae..e759e3c1a9f34 100644 | ||||
|        if (native_widget_delegate->IsDialogBox()) { | ||||
|          *style |= DS_MODALFRAME; | ||||
| diff --git ui/views/win/hwnd_message_handler.cc ui/views/win/hwnd_message_handler.cc | ||||
| index b1f7412f7a8e7..5f7187e98c3fa 100644 | ||||
| index 6d4dd467fa533..fdb970e627d81 100644 | ||||
| --- ui/views/win/hwnd_message_handler.cc | ||||
| +++ ui/views/win/hwnd_message_handler.cc | ||||
| @@ -771,7 +771,11 @@ bool HWNDMessageHandler::IsVisible() const { | ||||
| @@ -772,7 +772,11 @@ bool HWNDMessageHandler::IsVisible() const { | ||||
|  } | ||||
|   | ||||
|  bool HWNDMessageHandler::IsActive() const { | ||||
| @@ -666,7 +667,7 @@ index b1f7412f7a8e7..5f7187e98c3fa 100644 | ||||
|  } | ||||
|   | ||||
|  bool HWNDMessageHandler::IsMinimized() const { | ||||
| @@ -3221,10 +3225,13 @@ LRESULT HWNDMessageHandler::HandleMouseEventInternal(UINT message, | ||||
| @@ -3215,10 +3219,13 @@ LRESULT HWNDMessageHandler::HandleMouseEventInternal(UINT message, | ||||
|    } else if (event.type() == ui::ET_MOUSEWHEEL) { | ||||
|      ui::MouseWheelEvent mouse_wheel_event(msg); | ||||
|      // Reroute the mouse wheel to the window under the pointer if applicable. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user