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

Side by Side Diff: Source/web/PopupListBox.cpp

Issue 462353003: Cleanup namespace usage in Source/web[A-V]*.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Minor updates Created 6 years, 4 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
« no previous file with comments | « Source/web/PopupContainer.cpp ('k') | Source/web/PopupMenuChromium.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011, Google Inc. All rights reserved. 2 * Copyright (c) 2011, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 #include "platform/scroll/FramelessScrollViewClient.h" 50 #include "platform/scroll/FramelessScrollViewClient.h"
51 #include "platform/scroll/ScrollbarTheme.h" 51 #include "platform/scroll/ScrollbarTheme.h"
52 #include "platform/text/StringTruncator.h" 52 #include "platform/text/StringTruncator.h"
53 #include "platform/text/TextRun.h" 53 #include "platform/text/TextRun.h"
54 #include "web/PopupContainer.h" 54 #include "web/PopupContainer.h"
55 #include "web/PopupMenuChromium.h" 55 #include "web/PopupMenuChromium.h"
56 #include "wtf/ASCIICType.h" 56 #include "wtf/ASCIICType.h"
57 #include "wtf/CurrentTime.h" 57 #include "wtf/CurrentTime.h"
58 #include <limits> 58 #include <limits>
59 59
60 using namespace blink;
61
62 namespace blink { 60 namespace blink {
63 61
64 using namespace WTF::Unicode; 62 using namespace WTF::Unicode;
65 63
66 const int PopupListBox::defaultMaxHeight = 500; 64 const int PopupListBox::defaultMaxHeight = 500;
67 static const int maxVisibleRows = 20; 65 static const int maxVisibleRows = 20;
68 static const int minEndOfLinePadding = 2; 66 static const int minEndOfLinePadding = 2;
69 static const TimeStamp typeAheadTimeoutMs = 1000; 67 static const TimeStamp typeAheadTimeoutMs = 1000;
70 68
71 PopupListBox::PopupListBox(PopupMenuClient* client, bool deviceSupportsTouch) 69 PopupListBox::PopupListBox(PopupMenuClient* client, bool deviceSupportsTouch)
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
830 { 828 {
831 return numItems() && IntRect(0, 0, width(), height()).contains(point); 829 return numItems() && IntRect(0, 0, width(), height()).contains(point);
832 } 830 }
833 831
834 int PopupListBox::popupContentHeight() const 832 int PopupListBox::popupContentHeight() const
835 { 833 {
836 return height(); 834 return height();
837 } 835 }
838 836
839 } // namespace blink 837 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/PopupContainer.cpp ('k') | Source/web/PopupMenuChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698