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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_base.h

Issue 637083002: Sets the default background color of inline signin and user manager to grey (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
7 7
8 #if defined(OS_MACOSX) 8 #if defined(OS_MACOSX)
9 #include <OpenGL/OpenGL.h> 9 #include <OpenGL/OpenGL.h>
10 #endif 10 #endif
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 // Basic implementation shared by concrete RenderWidgetHostView subclasses. 66 // Basic implementation shared by concrete RenderWidgetHostView subclasses.
67 class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView, 67 class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView,
68 public IPC::Listener { 68 public IPC::Listener {
69 public: 69 public:
70 virtual ~RenderWidgetHostViewBase(); 70 virtual ~RenderWidgetHostViewBase();
71 71
72 // RenderWidgetHostView implementation. 72 // RenderWidgetHostView implementation.
73 virtual void SetBackgroundOpaque(bool opaque) override; 73 virtual void SetBackgroundOpaque(bool opaque) override;
74 virtual bool GetBackgroundOpaque() override; 74 virtual bool GetBackgroundOpaque() override;
75 virtual void SetBackgroundColor(SkColor color) override;
75 virtual ui::TextInputClient* GetTextInputClient() override; 76 virtual ui::TextInputClient* GetTextInputClient() override;
76 virtual bool IsShowingContextMenu() const override; 77 virtual bool IsShowingContextMenu() const override;
77 virtual void SetShowingContextMenu(bool showing_menu) override; 78 virtual void SetShowingContextMenu(bool showing_menu) override;
78 virtual base::string16 GetSelectedText() const override; 79 virtual base::string16 GetSelectedText() const override;
79 virtual bool IsMouseLocked() override; 80 virtual bool IsMouseLocked() override;
80 virtual gfx::Size GetVisibleViewportSize() const override; 81 virtual gfx::Size GetVisibleViewportSize() const override;
81 virtual void SetInsets(const gfx::Insets& insets) override; 82 virtual void SetInsets(const gfx::Insets& insets) override;
82 virtual void BeginFrameSubscription( 83 virtual void BeginFrameSubscription(
83 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; 84 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override;
84 virtual void EndFrameSubscription() override; 85 virtual void EndFrameSubscription() override;
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 static void DetachPluginsHelper(HWND parent); 376 static void DetachPluginsHelper(HWND parent);
376 #endif 377 #endif
377 378
378 // Whether this view is a popup and what kind of popup it is (select, 379 // Whether this view is a popup and what kind of popup it is (select,
379 // autofill...). 380 // autofill...).
380 blink::WebPopupType popup_type_; 381 blink::WebPopupType popup_type_;
381 382
382 // When false, the background of the web content is not fully opaque. 383 // When false, the background of the web content is not fully opaque.
383 bool background_opaque_; 384 bool background_opaque_;
384 385
386 // The initial background color for opaque windows.
387 SkColor background_color_;
388
385 // While the mouse is locked, the cursor is hidden from the user. Mouse events 389 // While the mouse is locked, the cursor is hidden from the user. Mouse events
386 // are still generated. However, the position they report is the last known 390 // are still generated. However, the position they report is the last known
387 // mouse position just as mouse lock was entered; the movement they report 391 // mouse position just as mouse lock was entered; the movement they report
388 // indicates what the change in position of the mouse would be had it not been 392 // indicates what the change in position of the mouse would be had it not been
389 // locked. 393 // locked.
390 bool mouse_locked_; 394 bool mouse_locked_;
391 395
392 // Whether we are showing a context menu. 396 // Whether we are showing a context menu.
393 bool showing_context_menu_; 397 bool showing_context_menu_;
394 398
(...skipping 28 matching lines...) Expand all
423 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; 427 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_;
424 428
425 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 429 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
426 430
427 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 431 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
428 }; 432 };
429 433
430 } // namespace content 434 } // namespace content
431 435
432 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 436 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698