OLD | NEW |
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 #include "ash/keyboard_overlay/keyboard_overlay_delegate.h" | 5 #include "ash/keyboard_overlay/keyboard_overlay_delegate.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 // A message handler for detecting the timing when the web contents is painted. | 30 // A message handler for detecting the timing when the web contents is painted. |
31 class PaintMessageHandler | 31 class PaintMessageHandler |
32 : public WebUIMessageHandler, | 32 : public WebUIMessageHandler, |
33 public base::SupportsWeakPtr<PaintMessageHandler> { | 33 public base::SupportsWeakPtr<PaintMessageHandler> { |
34 public: | 34 public: |
35 explicit PaintMessageHandler(views::Widget* widget) : widget_(widget) {} | 35 explicit PaintMessageHandler(views::Widget* widget) : widget_(widget) {} |
36 virtual ~PaintMessageHandler() {} | 36 virtual ~PaintMessageHandler() {} |
37 | 37 |
38 // WebUIMessageHandler implementation. | 38 // WebUIMessageHandler implementation. |
39 virtual void RegisterMessages() OVERRIDE; | 39 virtual void RegisterMessages() override; |
40 | 40 |
41 private: | 41 private: |
42 void DidPaint(const base::ListValue* args); | 42 void DidPaint(const base::ListValue* args); |
43 | 43 |
44 views::Widget* widget_; | 44 views::Widget* widget_; |
45 | 45 |
46 DISALLOW_COPY_AND_ASSIGN(PaintMessageHandler); | 46 DISALLOW_COPY_AND_ASSIGN(PaintMessageHandler); |
47 }; | 47 }; |
48 | 48 |
49 void PaintMessageHandler::RegisterMessages() { | 49 void PaintMessageHandler::RegisterMessages() { |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 bool KeyboardOverlayDelegate::ShouldShowDialogTitle() const { | 139 bool KeyboardOverlayDelegate::ShouldShowDialogTitle() const { |
140 return false; | 140 return false; |
141 } | 141 } |
142 | 142 |
143 bool KeyboardOverlayDelegate::HandleContextMenu( | 143 bool KeyboardOverlayDelegate::HandleContextMenu( |
144 const content::ContextMenuParams& params) { | 144 const content::ContextMenuParams& params) { |
145 return true; | 145 return true; |
146 } | 146 } |
147 | 147 |
148 } // namespace ash | 148 } // namespace ash |
OLD | NEW |