refactor: replace USE_X11 with OS_LINUX for sharing code with Ozone (#25522)
This commit is contained in:
parent
137fc65e2f
commit
efd003d277
9 changed files with 18 additions and 18 deletions
|
@ -23,7 +23,7 @@ class InspectableWebContentsViewDelegate {
|
|||
// Returns the icon of devtools window.
|
||||
virtual gfx::ImageSkia GetDevToolsWindowIcon();
|
||||
|
||||
#if defined(USE_X11)
|
||||
#if defined(OS_LINUX)
|
||||
// Called when creating devtools window.
|
||||
virtual void GetDevToolsWindowWMClass(std::string* name,
|
||||
std::string* class_name) {}
|
||||
|
|
|
@ -186,7 +186,7 @@ void InspectableWebContentsViewViews::SetIsDocked(bool docked, bool activate) {
|
|||
params.delegate = devtools_window_delegate_;
|
||||
params.bounds = inspectable_web_contents()->GetDevToolsBounds();
|
||||
|
||||
#if defined(USE_X11)
|
||||
#if defined(OS_LINUX)
|
||||
params.wm_role_name = "devtools";
|
||||
if (GetDelegate())
|
||||
GetDelegate()->GetDevToolsWindowWMClass(¶ms.wm_class_name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue